Re: [NTG-context] UTF conversion via Lua
Hello Hans, thank you for the extension; I've tested and it works perfectly. On Thu, 16 Feb 2012 23:56:44 +0100, Hans Hagen pra...@wxs.nl wrote: regimes.toregime('8859-1',abcde Ä,?) but you'll have to test and wikify it. I'll going to wikify it - - I supppose: regimes.toregime(target-regime, text-to-convert, third-arg) so question - what is the third-argment used for? Maybe as default character when the UTF code cannot be mapped to target-regime? (It didn't happen in my case, so I can just estimate what third-arg is for.) Best regards, Lukas Hans -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF conversion via Lua
On 17-2-2012 09:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello Hans, thank you for the extension; I've tested and it works perfectly. On Thu, 16 Feb 2012 23:56:44 +0100, Hans Hagen pra...@wxs.nl wrote: regimes.toregime('8859-1',abcde Ä,?) but you'll have to test and wikify it. I'll going to wikify it - - I supppose: regimes.toregime(target-regime, text-to-convert, third-arg) so question - what is the third-argment used for? Maybe as default character when the UTF code cannot be mapped to target-regime? yes (It didn't happen in my case, so I can just estimate what third-arg is for.) then you should make a test for it (just take some chinese character and see if it becomes a ?) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [beta] anch-pos.lua
On 17-2-2012 02:05, Philipp Gesang wrote: The new code is solid. Of course one can always stretch it to the limit: \setuptextbackground [mp=mpos:par:region, method=mpos:par:region] \setupbodyfont[dejavu,10pt] \showframe \definetextbackground[r] \definetextbackground[b] \starttext test \starttextbackground[b] \input ward \parshape 5 5cm 8cm 4cm 8cm 3cm 8cm 2cm 8cm 1cm 8cm \input ward \input ward \input ward \stoptextbackground{} test \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF conversion via Lua
On Fri, 17 Feb 2012 09:19:16 +0100, Hans Hagen pra...@wxs.nl wrote: On Thu, 16 Feb 2012 23:56:44 +0100, Hans Hagen pra...@wxs.nl wrote: regimes.toregime('8859-1',abcde Ä,?) but you'll have to test and wikify it. Wikified - http://wiki.contextgarden.net/Encodings_and_Regimes#Conversion_between_encodings. Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
Am 16.02.2012 um 22:53 schrieb Hans Hagen: On 16-2-2012 20:38, Aditya Mahajan wrote: I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input. It's no big deal to add a remapper although I'd do the renaming on the final xml tree. After all, with a proper css any xml file should render ok and I'd rather stick to generic tagging. The html files do render in a browser but the epub files can’t be read on a ereader what makes the function useless for me. Changing the tags from “paragraph” to “p”, adding body tags and using a different namespace declaration let me produce a usable file but should this really be necessary? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
On Thu, Feb 16, 2012 at 4:19 PM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files generated by myself and by you just show the unformatted text. With Firefox it works. Copy and paste the css stylesheet shows the text in a more decent way, but still the images are missing --- probably the url(image) is wrong. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
I did use the stylesheets I found in texmf-context/tex/context/base. But it doesn't make any difference on an ereader (or in Calibre; there the file shows correctly in the side-panel, just as it does in a browser, but not when you open it for reading). I would like to offer students a format they can read on all kinds of electronic devices (= an epub file), but if I interpret the discussion correctly, this can not (yet?) been done without much hassle in context. Jörg On Feb 17, 2012, at 11:04 AM, luigi scarso wrote: On Thu, Feb 16, 2012 at 4:19 PM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: This discussion was continued privately (my mistake). A summary: Thanks for the file, Luigi -- getting closer. Two problems left: 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files generated by myself and by you just show the unformatted text. With Firefox it works. Copy and paste the css stylesheet shows the text in a more decent way, but still the images are missing --- probably the url(image) is wrong. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Prof. Jörg Hagmann-Zanolari MD University of Basel Department of Biomedicine Institute of Biochemistry and Genetics Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
On Fri, Feb 17, 2012 at 11:17 AM, Jörg Hagmann joerg.hagm...@unibas.ch wrote: I did use the stylesheets I found in texmf-context/tex/context/base. But it doesn't make any difference on an ereader (or in Calibre; there the file shows correctly in the side-panel, just as it does in a browser, but not when you open it for reading). For calibre just cut and paste export-example.css into User Stylesheets -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
On 17-2-2012 11:17, Jörg Hagmann wrote: I did use the stylesheets I found in texmf-context/tex/context/base. But it doesn't make any difference on an ereader (or in Calibre; there the file shows correctly in the side-panel, just as it does in a browser, but not when you open it for reading). I would like to offer students a format they can read on all kinds of electronic devices (= an epub file), but if I interpret the discussion correctly, this can not (yet?) been done without much hassle in context. it's more that the epub spec is somewhat messy and that each device / program comes with its own tweaks (there is some info on the wiki about this) ... mostly file / id related mess Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
On 17-2-2012 10:42, Wolfgang Schuster wrote: Am 16.02.2012 um 22:53 schrieb Hans Hagen: On 16-2-2012 20:38, Aditya Mahajan wrote: I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input. It's no big deal to add a remapper although I'd do the renaming on the final xml tree. After all, with a proper css any xml file should render ok and I'd rather stick to generic tagging. The html files do render in a browser but the epub files can’t be read on a ereader what makes the function useless for me. Changing the tags from “paragraph” to “p”, adding body tags and using a different namespace declaration let me produce a usable file but should this really be necessary? the alternative is to use html tags and of course there is a limited set which in turn means all kind of 'class' attributes and additional css which might as well not be supported by an ereader device .. the same is true for math ... not supported by most ereaders so one ends up with fake math via css which looks horrible etc etc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] pack_black_rule_pickup ?
Hi, what's wrong here?? \unexpanded\def\MyRule{\blackrule[color=orange,width=18mm,height=0.4pt]} \setupnote[footnote][rule=\MyRule] \starttext teset\footnote{text}. \stoptext ... gives ... {\currentnote }]{\pack_black_rule_pickup }\def \syst_helpers_next_optional_command_nop \ETC. ! File ended while scanning use of \setup_notation. system tex error on line 0 in file : File ended while scanning use of \setup_notation ... empty file inserted text \par * ./e.tex \stoptext ? Steffen vers. 2012.02.16 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
On Feb 17, 2012, at 12:44 PM, Hans Hagen wrote: the alternative is to use html tags and of course there is a limited set which in turn means all kind of 'class' attributes and additional css which might as well not be supported by an ereader device .. the same is true for math ... not supported by most ereaders so one ends up with fake math via css which looks horrible etc etc Medical students hate formulae. They will be happy if I can't include them. Jörg ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] columnsets error in 2.08 beta
On 2012-02-15 09:52, Peter Park Nelson wrote: BTW, is it possible to revert the Context standalone installation to an earlier beta (without going all the way back to the last stable)? Hi Peter, there is a git mirror at http://repo.or.cz/w/context.git/shortlog/refs/heads/origin If you don’t want to clone the whole thing, just pick one snapshot of your liking from the web interface and download it. Then, untar it and replace the contents of the directory tex/texmf-context/ of your minimals/standalone installation with the files from the snapshot. (Just to be safe you should not merely copy everything but delete the old files first.) Finally, rebuild the format and file database: context --generate context --make and check if it worked: context --version If the string “current version: .mm.dd HH:MM” shows the date of the snapshot you chose, you have successfully reverted to an earlier beta. Hth, Philipp Error below: (K2.tex ConTeXt ver: 2012.02.08 21:58 MKIV fmt: 2012.2.15 int: english/english system cont-new.mkiv loaded (/home/peter/contextbeta/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system K2.top loaded system options start used options used options % runtime options files (command line driven) used options \unprotect used options % feedback and basic job control used options % handy for special styles used options \startluacode used options document = document or { } used options document.arguments={ used options } used options document.files={ used options K2.tex, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=K2.tex] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used options % done used options \protect \endinput system options stop used options (K2.top) fontslatin modern fonts are not preloaded languageslanguage en is active {/home/peter/contextbeta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown: library 'loc' {/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/peter/contextbeta/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded ! Undefined control sequence. system tex error on line 6 in file K2.tex: Undefined control sequence ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input tufte\par 7 \stopcolumnset 8 9 \stoptext \154columnset:page_otr_command_routine ...outine \page_otr_commands_process ...outineparameter {#1} }\ifx \page_otr_specifics_... inserted text ...cess {page_otr_command_routine} \page_otr_commands_process... inserted text ...eset \the \t_page_otr_commands \let \page_otr_commands_pr... \setup_outputroutine ...\everyswitchoutputroutine \fi \else \let \previousou... to be read again \doifelsenothing ... l.6 \input tufte\par ? ! Interruption. system tex error on line 6 in file K2.tex: Interruption ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input tufte\par 7 \stopcolumnset 8 9 \stoptext \page_otr_commands_process ...outineparameter {#1} }\ifx \page_otr_specifics_... inserted text ...cess {page_otr_command_routine} \page_otr_commands_process... inserted text ...eset \the \t_page_otr_commands \let \page_otr_commands_pr... \setup_outputroutine ...\everyswitchoutputroutine \fi \else \let \previousou... to be read again \doifelsenothing \dostartcolumnset ...!columnset ]\doifelsenothing {#1} {\globallet \OTRSETli... ... l.6 \input tufte\par ? ! Emergency stop. system tex error on line 6 in file K2.tex: Emergency stop ... 1 2 \definecolumnset[body][n=2] 3 4 \starttext 5 \startcolumnset[body] 6 \input
[NTG-context] notes changes
Hi, with current beta I get an interesting symbol in cases when my footnotetext doesn't fit on the same page as its marker: PastedGraphic-2.pdf Description: Adobe PDF document Nice! But how can I switch it off? Steffen___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \setupcombinedlist[content][alternative=c] has no effect in latest experimental
Minimal example: \setupcombinedlist[content][alternative=c] \starttext \completecontent \dorecurse{10}{ \section{sec} \input tufte \subsection{subsec} \input tufte \subsection{subsec} \input tufte \subsection{subsec} \input tufte } \stoptext With 2012.02.17 15:53 no dots appear. 2011.05.18 works fine. Regards, Vedran Miletić ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] margin data prevent line numbering (latest beta)
Hi Hans, many thanks for the new beta. I have noticed that margin data prevent the lines in which they are located to be numbered. Here you have a minimal example: \definemargindata[mgch] \setupmargindata[mgch][location=outer] \starttext \startlinenumbering \dorecurse{10}{\mgch{0}unnumbered lines } \dorecurse{10}{numbered lines } \stoplinenumbering \stoptext Many thanks hanks for your help, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] epub
Am 17.02.2012 um 12:44 schrieb Hans Hagen: On 17-2-2012 10:42, Wolfgang Schuster wrote: Am 16.02.2012 um 22:53 schrieb Hans Hagen: On 16-2-2012 20:38, Aditya Mahajan wrote: I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input. It's no big deal to add a remapper although I'd do the renaming on the final xml tree. After all, with a proper css any xml file should render ok and I'd rather stick to generic tagging. The html files do render in a browser but the epub files can’t be read on a ereader what makes the function useless for me. Changing the tags from “paragraph” to “p”, adding body tags and using a different namespace declaration let me produce a usable file but should this really be necessary? the alternative is to use html tags and of course there is a limited set which in turn means all kind of 'class' attributes and additional css which might as well not be supported by an ereader device .. the same is true for math ... not supported by most ereaders so one ends up with fake math via css which looks horrible etc etc I would really prefer to use only html tags when a epub file is produced, now the files can be only viewed without problems in firefox (with the epubreader extension) which is nonsense. With the epub 3 standard also mathml is supported and when a reader is used which doesn’t understand it that’s no problem because the standard is AFAIK backward compatible and unknown functions are just ignored. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___