1
0
mirror of https://tildegit.org/sbgodin/HtmGem.git synced 2023-08-25 13:53:12 +02:00
This commit is contained in:
Christophe HENRY 2021-03-08 10:45:51 +01:00
parent ac0de467ab
commit 7f19c7e963
2 changed files with 4 additions and 9 deletions

11
TODO
View File

@ -1,25 +1,20 @@
* manage url encoding: The filename fetched on disk may differ from that was asked by URL.
* check /etc/passwd not accessible: Perform sanity checks against unauthorized access.
* manage 404: Display better errors.
* alt texts on pre and quote?
* HTML: alt texts on pre and quote
* HTML: On links indicate whether it's on Gemini or Www or image.
* a way to get the source of a page, using urlrewriting
* options to activate the text decoration
* HTML caching: Nginx tries the html, if not found use this script to build it
* any error on one read line logs and goes to the next line, resetting modes
* configuration: Fetch configuration in current dir, tries parents.
* css: file location or in-place or in config?
* Use first h1 as the HTML page title on get in config?
* On links indicate whether it's on Gemini or Www or image.
* Command line API for script and testing.
* Manage anchors
* Page menu on upper and lower sides: [parent dir] [root dir] [inline images] [raw response] [view cert]
* Check unicode capability
* Check unicode capability, UTF16 input, etc…
* Manage different type of carriage return: CR CR/LF LF
* Do not output an empty line for the last carriage return of the document
* Test on a shared hosting
* Be able to navigate (custom the links) when using htmgen.php?url=…
* Text localisation
* Search all cases where a narrow no-break space would apply
* Manage logging (cache refresh, debug)
* Split the main loop in two: one part to decode the text to internal language, the other to make the HTML
* Something to build gmi files and connect it afterwards to generate HTML : Abstract --> gemtext --> HTML. This would allow to make services output on both Gemini and HTML.

View File

@ -90,7 +90,7 @@ foreach ($fileLines as $line) {
$mode_textAttributes_temp = false;
while (true) {
if ($reDoCount>2) {
error_log("Too many loops, mode == '$mode'");
error_log("HtmGem: Too many loops, mode == '$mode'");
$mode = null;
$reDoCount = 0;
break;