Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Idea] Convert ingame C-BOT Language reference to HTML
#1
Got an idea to convert language reference and help into HTML and, then, to bookmarked PDF with table of contents to print it as paper manual for my kid. Written simple script, doing the conversion job for aprox. 85%, but stuck on some Colobot tag meanings and sequences, for example - \key and \c... \n sequences.

Is there any description of tags?

And, at all, may be this could be good idea to rewrite ingame browser, reference and mission texts to support HTML in way to be able to automatically build book of C-BOT from that source?
#2
Currently we have something like this http://colobot.info/SatComOnline/master/cbot, it reads directly from data files from repository https://github.com/colobot/colobot-data/...aster/help, so it's always up-to-date. It was easier to make a HTML parser of current syntax instead of rewriting all these pages and engine parser to HTML.
And about tags for converter you have to ask @krzys_h how it works.
Spoiler :
[Image: unknown.png]
#3
@krzys_h, could be made the variant of code, converting colobot texts to dir structured or CGI like URL and so transformed links in pages? Like
Code:
<a href="http://colobot.info/master/cbot/en/cbot.html">


so tools like Acrobat DC can get root document and batch convert it with references and links to PDF?
#4
@krueger Not in the current form as the help files are downloaded and converted client-side in JavaScript. A script to convert all the docs into a printable PDF sounds like a good idea though.
You can find a somewhat complete documentation of the help file syntax in the README for translators - https://github.com/colobot/colobot-data/...ME.i18n.md


Forum Jump:


Users browsing this thread: 1 Guest(s)