New c-o-w: The XMas gift for ConTeXt users
Hello ConTeXt community! I'm Zdeněk Svoboda, a master degree student at Mendel university in Brno. I've been using ConTeXt for a while now and have always been impressed by its capabilities and the helpfulness of this community. For my thesis project with Tomáš Hála as the supervisor, I've developed an online application for working with ConTeXt. The main goal was to create an application capable of compiling ConTeXt source right from the browser but I thought that it's not enough and added a few features or tools on top of that. Functions of the application include: - User accounts to save files and access them from other computers. - Editor with syntax highlighting and autocompletion for ConTeXt command. - Generating PDF document and previewing it directly from the browser. - Layout designer to customize the layout of their documents with a variety of options and mouse resizability of each layout element. - Table designer for creating and customize tables with alignment and border settings, colors, merging and splitting cells eg. - Lists designer with a simple interface to customize lists. - Help function for ConTeXt commands (hidden under the "?" button) Developing this application was a great learning experience for me, and I faced a number of technical challenges along the way. For example, having to dig through the XML document to extract all the information needed for the "?" help function. I'm excited to share my project with the ConTeXt community and hope that it will be a useful resource for someone. If you're interested in trying it out, you can find it at https://www.context-on-web.eu/. I'd love to hear any feedback or suggestions you have. If you find a bug or encounter an error while using the application, please let me know (and cc: thala@mendelu.cz) the steps you took that caused it. Known bugs: - Generated code from table designer needs better formatting - Duplicated color definitions in table designer - Layout designer -- numbers are not rounded Best regards, Zdeněk Svoboda
Dear Zdeněk Svoboda.
I tried your platform, it's great and it will definitely help to
promote ConTeXt. Thanks for your work.
I am from China and I would like to know, does this platform support
CJK fonts (e.g. https://github.com/googlefonts/noto-cjk)?
if yes, then is there any examples of usage?
or have any plans to support them?
Best regards,
黄复雄(Huang Fusyong)
Zdeněk Svoboda via ntg-context
Hello ConTeXt community!
I'm Zdeněk Svoboda, a master degree student at Mendel university in Brno. I've been using ConTeXt for a while now and have always been impressed by its capabilities and the helpfulness of this community.
For my thesis project with Tomáš Hála as the supervisor, I've developed an online application for working with ConTeXt. The main goal was to create an application capable of compiling ConTeXt source right from the browser but I thought that it's not enough and added a few features or tools on top of that. Functions of the application include:
- User accounts to save files and access them from other computers. - Editor with syntax highlighting and autocompletion for ConTeXt command. - Generating PDF document and previewing it directly from the browser. - Layout designer to customize the layout of their documents with a variety of options and mouse resizability of each layout element. - Table designer for creating and customize tables with alignment and border settings, colors, merging and splitting cells eg. - Lists designer with a simple interface to customize lists. - Help function for ConTeXt commands (hidden under the "?" button)
Developing this application was a great learning experience for me, and I faced a number of technical challenges along the way. For example, having to dig through the XML document to extract all the information needed for the "?" help function.
I'm excited to share my project with the ConTeXt community and hope that it will be a useful resource for someone. If you're interested in trying it out, you can find it at https://www.context-on-web.eu/. I'd love to hear any feedback or suggestions you have. If you find a bug or encounter an error while using the application, please let me know (and cc: thala@mendelu.cz) the steps you took that caused it.
Known bugs: - Generated code from table designer needs better formatting - Duplicated color definitions in table designer - Layout designer -- numbers are not rounded
Best regards, Zdeněk Svoboda
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
On 12/27/2022 2:30 AM, 黄复雄 via ntg-context wrote:
Dear Zdeněk Svoboda.
I tried your platform, it's great and it will definitely help to promote ConTeXt. Thanks for your work.
I am from China and I would like to know, does this platform support CJK fonts (e.g. https://github.com/googlefonts/noto-cjk)? if yes, then is there any examples of usage? or have any plans to support them? It's a matter of choice. It's not so much about 'support'because these fonts work ok, but more about what is a reasonable subset of fonts for cjk (covering all of chinese, japanese, korean).
You can probably test with uploading a font the the work directory. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
You can probably test with uploading a font the the work directory.
Hans, thanks for the tip. I uploaded a noto-cjk font file, NotoSerifCJKsc-Regular.otf, to the root directory. Also, my typography file, test.tex, is in the root directory, and it reads ```context \definefont[myfont][file:NotoSerifCJKsc-Regular.otf*default at 12pt] \starttext {\myfont 我我} \stoptext ``` Then I did not get the correct PDF file, i.e. the two Chinese characters are not displayed on it. and the log shows: ```log ...... fonts > defining > forced type 'otf' of 'NotoSerifCJKsc-Regular' not found 17fonts > defining > unable to define 'NotoSerifCJKsc-Regular.otf' as 'myfont--0' ...... 51fonts > start missing characters: /home/admin/context/tex/texmf/fonts/data/gust/lm/lmroman10-regular.otf 52fonts > 2 U+06211 我 <CJK Ideograph> 53fonts > stop missing characters ...... ``` I processed on my Win10 PC, with the same font file, test.tex and the same directory structure, and got the correct PDF file and the log is as follows: ```log ...... fonts > defining > source file 'c:/windows/fonts/NotoSerifCJKsc-Regular.otf' is not found fonts > defining > using source file 'NotoSerifCJKsc-Regular.otf' due to cache mismatch ...... mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, lmroman12-regular.otf, notoserifcjksc-regular.otf ...... ``` Any further hints? Best regards, 黄复雄(Huang Fusyong)
Hello Huang, This was probably an error on my side. Can you please try again now? I have tried to fix it, it should hopefully work now. Sincerely, Zdeněk Svoboda Dne 28. 12. 22 v 3:01 黄复雄 via ntg-context napsal(a):
You can probably test with uploading a font the the work directory.
Hans, thanks for the tip.
I uploaded a noto-cjk font file, NotoSerifCJKsc-Regular.otf, to the root directory. Also, my typography file, test.tex, is in the root directory, and it reads
```context \definefont[myfont][file:NotoSerifCJKsc-Regular.otf*default at 12pt]
\starttext
{\myfont 我我}
\stoptext ```
Then I did not get the correct PDF file, i.e. the two Chinese characters are not displayed on it. and the log shows:
```log ...... fonts > defining > forced type 'otf' of 'NotoSerifCJKsc-Regular' not found 17fonts > defining > unable to define 'NotoSerifCJKsc-Regular.otf' as 'myfont--0' ...... 51fonts > start missing characters: /home/admin/context/tex/texmf/fonts/data/gust/lm/lmroman10-regular.otf 52fonts > 2 U+06211 我 <CJK Ideograph> 53fonts > stop missing characters ...... ```
I processed on my Win10 PC, with the same font file, test.tex and the same directory structure, and got the correct PDF file and the log is as follows:
```log ...... fonts > defining > source file 'c:/windows/fonts/NotoSerifCJKsc-Regular.otf' is not found fonts > defining > using source file 'NotoSerifCJKsc-Regular.otf' due to cache mismatch ...... mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, lmroman12-regular.otf, notoserifcjksc-regular.otf ...... ```
Any further hints?
Best regards, 黄复雄(Huang Fusyong) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
Dear Zdeněk,
Thanks for your prompt response.
Yes, great, I got the right PDF now.
Best regards
黄复雄(Huang Fysyong)
Zdeněk Svoboda via ntg-context
Hello Huang,
This was probably an error on my side.
Can you please try again now? I have tried to fix it, it should hopefully work now.
Sincerely, Zdeněk Svoboda
Dne 28. 12. 22 v 3:01 黄复雄 via ntg-context napsal(a):
You can probably test with uploading a font the the work directory.
Hans, thanks for the tip.
I uploaded a noto-cjk font file, NotoSerifCJKsc-Regular.otf, to the root directory. Also, my typography file, test.tex, is in the root directory, and it reads
```context \definefont[myfont][file:NotoSerifCJKsc-Regular.otf*default at 12pt]
\starttext
{\myfont 我我}
\stoptext ```
Then I did not get the correct PDF file, i.e. the two Chinese characters are not displayed on it. and the log shows:
```log ...... fonts > defining > forced type 'otf' of 'NotoSerifCJKsc-Regular' not found 17fonts > defining > unable to define 'NotoSerifCJKsc-Regular.otf' as 'myfont--0' ...... 51fonts > start missing characters: /home/admin/context/tex/texmf/fonts/data/gust/lm/lmroman10-regular.otf 52fonts > 2 U+06211 我 <CJK Ideograph> 53fonts > stop missing characters ...... ```
I processed on my Win10 PC, with the same font file, test.tex and the same directory structure, and got the correct PDF file and the log is as follows:
```log ...... fonts > defining > source file 'c:/windows/fonts/NotoSerifCJKsc-Regular.otf' is not found fonts > defining > using source file 'NotoSerifCJKsc-Regular.otf' due to cache mismatch ...... mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, lmroman12-regular.otf, notoserifcjksc-regular.otf ...... ```
Any further hints?
Best regards, 黄复雄(Huang Fusyong) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
On 12/27/22 00:57, Zdeněk Svoboda via ntg-context wrote:
Hello ConTeXt community! [...] I'm excited to share my project with the ConTeXt community and hope that it will be a useful resource for someone. If you're interested in trying it out, you can find it at https://www.context-on-web.eu/. I'd love to hear any feedback or suggestions you have. If you find a bug or encounter an error while using the application, please let me know (and cc: thala@mendelu.cz) the steps you took that caused it.
Hi Zdeněk, your site is pretty impressive. Congratulations for your awesome work! It surely will help users, especially the ones new to ConTeXt. Many thanks for your excellent work, Pabllo
Hi Zdeněk! Congratulation, the online version, the web-site looks very nice. you have built in a lot of nice features! I tried the interface for a short while. During testing I was thrown out each time and you do not understand why. — Does this have to do with the fact that I did not create a user-account? While creating a tabulate I detected, that the use of the tab-key is only possible at the beginning of the line. When using the tab-key inside a tabulate line the whole line is indented for another tab. While it is nice to see all the available command-choices it is rather less intuitive, that always the brackets are placed. Specially while editing \bTABLE … \eTABLE and the commands belonging to this table-type it could be good to have the right arrow key to have the command placed with brackets and with the down-arrow-key the command being placed without brackets (?) — I think, that the source should not be cluttered with empty brackets all over the place. When you start the editor from the website you have no idea, what the layout of the page will be. While being somewhere in the edited text I switched to the layout-wizzard. Strange enough it is A4 on A3-Paper, I think for a normal user it should be A4 on A4 paper. The default layout dimension is in pt. — I doubt whether this is the best for a newcomer. May be mm would be better? — After returning to the editor I detected, that the new layout is placed at the cursor's position. Might it be a good idea, to place this at the top of the document or probably to ask the user whether the layout change should be placed at the cursor’s place? In the meantime I also created an account. — Strange that I have to confirm the account to an e-mail, which does not make any reference to what account this confirmation is asked for. Nice is that now I was not kicked out of the editor anymore! While testing further I experienced, that the system is eating up a letter: \blank[small] —> caused a sequence undefined error: in the log there was \blank[smal … Hereafter I put a space after small and it worked correctly. Then I withdrew the space, saved the file and started generation of PDF. — got a hanger… After restarting everything it appeared, that my test file was not listed in the editor’s left pane and also not the two uploaded picture-files. — I tried to logout. Logout does not seem to work. Not withstanding all my comments, I am impressed how your system works. Once it will be stable I am convinced, that it can be a useful tool to promote the use of ConTeXt. Thank you for all the work performed so far! Kind regards Willi
On 27 Dec 2022, at 00:57, Zdeněk Svoboda via ntg-context
wrote: Hello ConTeXt community!
I'm Zdeněk Svoboda, a master degree student at Mendel university in Brno. I've been using ConTeXt for a while now and have always been impressed by its capabilities and the helpfulness of this community.
For my thesis project with Tomáš Hála as the supervisor, I've developed an online application for working with ConTeXt. The main goal was to create an application capable of compiling ConTeXt source right from the browser but I thought that it's not enough and added a few features or tools on top of that. Functions of the application include:
- User accounts to save files and access them from other computers. - Editor with syntax highlighting and autocompletion for ConTeXt command. - Generating PDF document and previewing it directly from the browser. - Layout designer to customize the layout of their documents with a variety of options and mouse resizability of each layout element. - Table designer for creating and customize tables with alignment and border settings, colors, merging and splitting cells eg. - Lists designer with a simple interface to customize lists. - Help function for ConTeXt commands (hidden under the "?" button)
Developing this application was a great learning experience for me, and I faced a number of technical challenges along the way. For example, having to dig through the XML document to extract all the information needed for the "?" help function.
I'm excited to share my project with the ConTeXt community and hope that it will be a useful resource for someone. If you're interested in trying it out, you can find it at https://www.context-on-web.eu/. I'd love to hear any feedback or suggestions you have. If you find a bug or encounter an error while using the application, please let me know (and cc: thala@mendelu.cz) the steps you took that caused it.
Known bugs: - Generated code from table designer needs better formatting - Duplicated color definitions in table designer - Layout designer -- numbers are not rounded
Best regards, Zdeněk Svoboda
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
Hi Willi, Thank you for the feedback! Strange bug being thrown out of the editor while not logged in -- I'll have to look into that because I have not encountered it yet. May I ask what browser and OS are you using? I'm unable to reproduce the bug with the tab-key in tabulate. I know about the letter-eating bug and apparently I haven't been successful in fixing it yet. As for the files lost: 1. you created an account, 2. uploaded some files and pictures, 3. then tried to generate a PDF which got stuck, 4. so you refreshed the page, 5. and the files were lost? Am I correct? I will try to reproduce it taking your steps and will try to fix it. And for the logout -- you did not manage to logout at all? Thank you for the kind words. I'm hoping it will be a useful tool to promote ConTeXt! Sincerely, Zdeněk Svoboda
Hello Zdeněk,
On 27 Dec 2022, at 20:44, Zdeněk Svoboda via ntg-context
wrote: Hi Willi,
Thank you for the feedback!
Strange bug being thrown out of the editor while not logged in -- I'll have to look into that because I have not encountered it yet.
May I ask what browser and OS are you using? I'm unable to reproduce the bug with the tab-key in tabulate.
I am working on a MacBook Air, 10 year old, updated to the latest possible Os version, which is Big Sur (11.7), in this case I used Google Chrome.
I know about the letter-eating bug and apparently I haven't been successful in fixing it yet.
As for the files lost: 1. you created an account, 2. uploaded some files and pictures, 3. then tried to generate a PDF which got stuck, 4. so you refreshed the page, 5. and the files were lost? Am I correct? I will try to reproduce it taking your steps and will try to fix it.
You are correct. I created a file with the provided interface and saved it several times while building the test. During the building I uploaded two pictures, which were present in the file-pane. After this experimenting with the letter-eating bug the engine got in a endless loop which I had to terminate by closing the browser. After reopening the web-site the three files were gone.
And for the logout -- you did not manage to logout at all?
I was not at all able to logout. Is it the normal behaviour of this site, that you are automatically logged in again when starting? Again thank you for your work. I am also impressed about the overall performance of the tool! Kind regards Willi
Thank you for the kind words. I'm hoping it will be a useful tool to promote ConTeXt!
Sincerely, Zdeněk Svoboda
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
Hello Zdeněk, in addition to the former mail I would like to tell you, that I tested now also with Firefox (108.01). — Login went fine, logout went fine, the files I uploaded/created are shown in the fil-pane and the letter-eating bug did not occur with the test-file. — It looks like there is something also related to Chrome… I would like to congratulate you also for the “progress” animation, cute! Kind regards Willi
On 27 Dec 2022, at 20:44, Zdeněk Svoboda via ntg-context
wrote: Hi Willi,
Thank you for the feedback!
Strange bug being thrown out of the editor while not logged in -- I'll have to look into that because I have not encountered it yet.
May I ask what browser and OS are you using? I'm unable to reproduce the bug with the tab-key in tabulate.
I know about the letter-eating bug and apparently I haven't been successful in fixing it yet.
As for the files lost: 1. you created an account, 2. uploaded some files and pictures, 3. then tried to generate a PDF which got stuck, 4. so you refreshed the page, 5. and the files were lost? Am I correct? I will try to reproduce it taking your steps and will try to fix it.
And for the logout -- you did not manage to logout at all?
Thank you for the kind words. I'm hoping it will be a useful tool to promote ConTeXt!
Sincerely, Zdeněk Svoboda
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
Hello Willi, I'm glad that it "sorted itself out". I will look into the bugs with Chrome later but it is weird indeed. I was developing the app mostly using Firefox, so it should work fine there hopefully. Thanks for the progress animation, but I will have to take it out because I believe it is under copyright so there will be just a boring spinning circle. Sincerely, Zdeněk Dne 28. 12. 22 v 0:40 Willi Egger via ntg-context napsal(a):
Hello Zdeněk,
in addition to the former mail I would like to tell you, that I tested now also with Firefox (108.01). — Login went fine, logout went fine, the files I uploaded/created are shown in the fil-pane and the letter-eating bug did not occur with the test-file. — It looks like there is something also related to Chrome…
I would like to congratulate you also for the “progress” animation, cute!
Kind regards Willi
On 27 Dec 2022, at 20:44, Zdeněk Svoboda via ntg-context
wrote: Hi Willi,
Thank you for the feedback!
Strange bug being thrown out of the editor while not logged in -- I'll have to look into that because I have not encountered it yet.
May I ask what browser and OS are you using? I'm unable to reproduce the bug with the tab-key in tabulate.
I know about the letter-eating bug and apparently I haven't been successful in fixing it yet.
As for the files lost: 1. you created an account, 2. uploaded some files and pictures, 3. then tried to generate a PDF which got stuck, 4. so you refreshed the page, 5. and the files were lost? Am I correct? I will try to reproduce it taking your steps and will try to fix it.
And for the logout -- you did not manage to logout at all?
Thank you for the kind words. I'm hoping it will be a useful tool to promote ConTeXt!
Sincerely, Zdeněk Svoboda
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
On 12/27/2022 7:54 PM, Willi Egger via ntg-context wrote:
While creating a tabulate I detected, that the use of the tab-key is only possible at the beginning of the line. When using the tab-key inside a tabulate line the whole line is indented for another tab.
Can you configure your editor to inject 4 spaces instead of a tab character? FWIW, I always try to avoid tabs.
In the meantime I also created an account. — Strange that I have to confirm the account to an e-mail, which does not make any reference to what account this confirmation is asked for.
it avoids ghost users so a one time thing
Not withstanding all my comments, I am impressed how your system works. Once it will be stable I am convinced, that it can be a useful tool to promote the use of ConTeXt. Thank you for all the work performed so far!
indeed Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Hans Hagen
-
Pablo Rodriguez
-
Willi Egger
-
Zdeněk Svoboda
-
黄复雄