Re: [NTG-context] Malayalam shaping with mkiv/LuaTeX
On 1/8/2014 11:02 PM, Rajeesh K Nambiar wrote: On Wed, Jan 8, 2014 at 10:53 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.01.2014 um 22:51 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: On Wed, Jan 8, 2014 at 10:39 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.01.2014 um 22:27 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: I just did a clean install of beta to be sure and the issue persists. Indeed there is no 'start' at line 879 in my system as well. I tried on two different systems (both are 32 bit Linux). Are you able to compile the test file? I can process your example without problem even though the output doesn’t like for all cases like the text in the image. BTW: Can you attach your test file. Thanks for checking, Wolfgang. Attached the test file. Remove \usemodule[font-odv], the code is part of the core and reloading it causes only problems. Indeed, that fixes the compilation! And 2-part matras are fine now. But the output (shaping) is not what is expected as you have observed. Notably: 1. When a pre-base matra follows the akhn ligatures are broken 2. pref, pstf and blwf ligatures are not formed you need to identify the place in the code where that has to happen after which i can have a look at it (with real minimal examples) - 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] Malayalam shaping with mkiv/LuaTeX
On Thu, Jan 9, 2014 at 7:11 PM, Hans Hagen pra...@wxs.nl wrote: Remove \usemodule[font-odv], the code is part of the core and reloading it causes only problems. Indeed, that fixes the compilation! And 2-part matras are fine now. But the output (shaping) is not what is expected as you have observed. Notably: 1. When a pre-base matra follows the akhn ligatures are broken 2. pref, pstf and blwf ligatures are not formed you need to identify the place in the code where that has to happen after which i can have a look at it (with real minimal examples) With the initial patch I had sent, these were working okay (ie, akhn, pref, pstf and blwf ligatures were being formed). Minimal character sequence for test case: \char0D26 \char0D4D \char0D26 \char0D47%% DA, VIRAMA, DA, E needs to form ligature DDA,E With initial patch, in methods.dev2, (syllablestart,syllableend) were: (0D26, 0D26) {cluster DA, VIRAMA, DA} and (0D47,0D47) {E}. Current beta gets (0D26,0D4D) {cluster DA, VIRAMA} and (0D26,0D47) {DA, E}. Something changed in analyze_next_chars_two, may be? Okay - found that you had not considered 0D4D (virama/halant) not as halant{} but as stress_tone_mark{}. Adding 0D4D to the array halant{} restores the previous behaviour - ligatures are formed but with issues mentioned in the initial mail. analyze_next_chars_two indeed looks for halant. -- Regards, Rajeesh ___ 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] Malayalam shaping with mkiv/LuaTeX
On Mon, Jan 6, 2014 at 9:11 PM, Rajeesh K Nambiar rajeeshknamb...@gmail.com wrote: On Mon, Jan 6, 2014 at 10:33 PM, Hans Hagen pra...@wxs.nl wrote: On 1/4/2014 10:36 PM, Rajeesh K Nambiar wrote: Hello, especially Hans and Kai, I have succeeded to an extent in adding Malayalam shaping to the existing Devanagari shaping. Being a complete novice in Lua and mkiv, I'm at a point where your expertise is needed to proceed further. Please find the attached patch, test case listed below and expected rendering for comparison. Additionally needed to support: in next beta (some a bit different) Thank you very much for incorporating it! Just hit this with latest beta (same test case as before): error: .../context/tex/texmf-context/tex/context/base/font-odv.lua:1603: attempt to call global 'setfield' (a nil value) As of yesterday's beta, I get the following error: font-odv.lua:879: attempt to index local 'start' (a number value) Probably you're still updating things, am I testing prematurely? -- Cheers, Rajeesh ___ 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] Malayalam shaping with mkiv/LuaTeX
On 1/8/2014 6:50 PM, Rajeesh K Nambiar wrote: On Mon, Jan 6, 2014 at 9:11 PM, Rajeesh K Nambiar rajeeshknamb...@gmail.com wrote: On Mon, Jan 6, 2014 at 10:33 PM, Hans Hagen pra...@wxs.nl wrote: On 1/4/2014 10:36 PM, Rajeesh K Nambiar wrote: Hello, especially Hans and Kai, I have succeeded to an extent in adding Malayalam shaping to the existing Devanagari shaping. Being a complete novice in Lua and mkiv, I'm at a point where your expertise is needed to proceed further. Please find the attached patch, test case listed below and expected rendering for comparison. Additionally needed to support: in next beta (some a bit different) Thank you very much for incorporating it! Just hit this with latest beta (same test case as before): error: .../context/tex/texmf-context/tex/context/base/font-odv.lua:1603: attempt to call global 'setfield' (a nil value) As of yesterday's beta, I get the following error: font-odv.lua:879: attempt to index local 'start' (a number value) Probably you're still updating things, am I testing prematurely? it more looks liek some mixup of files at your end (there is no 'start' in that line) 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] Malayalam shaping with mkiv/LuaTeX
On Wed, Jan 8, 2014 at 9:36 PM, Hans Hagen pra...@wxs.nl wrote: On 1/8/2014 6:50 PM, Rajeesh K Nambiar wrote: On Mon, Jan 6, 2014 at 9:11 PM, Rajeesh K Nambiar rajeeshknamb...@gmail.com wrote: On Mon, Jan 6, 2014 at 10:33 PM, Hans Hagen pra...@wxs.nl wrote: On 1/4/2014 10:36 PM, Rajeesh K Nambiar wrote: Hello, especially Hans and Kai, I have succeeded to an extent in adding Malayalam shaping to the existing Devanagari shaping. Being a complete novice in Lua and mkiv, I'm at a point where your expertise is needed to proceed further. Please find the attached patch, test case listed below and expected rendering for comparison. Additionally needed to support: in next beta (some a bit different) Thank you very much for incorporating it! Just hit this with latest beta (same test case as before): error: .../context/tex/texmf-context/tex/context/base/font-odv.lua:1603: attempt to call global 'setfield' (a nil value) As of yesterday's beta, I get the following error: font-odv.lua:879: attempt to index local 'start' (a number value) Probably you're still updating things, am I testing prematurely? it more looks liek some mixup of files at your end (there is no 'start' in that line) Hi Hans, I just did a clean install of beta to be sure and the issue persists. Indeed there is no 'start' at line 879 in my system as well. I tried on two different systems (both are 32 bit Linux). Are you able to compile the test file? Hans -- Regards, Rajeesh ___ 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] Malayalam shaping with mkiv/LuaTeX
Am 08.01.2014 um 22:27 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: I just did a clean install of beta to be sure and the issue persists. Indeed there is no 'start' at line 879 in my system as well. I tried on two different systems (both are 32 bit Linux). Are you able to compile the test file? I can process your example without problem even though the output doesn’t like for all cases like the text in the image. BTW: Can you attach your test file. 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] Malayalam shaping with mkiv/LuaTeX
On Wed, Jan 8, 2014 at 10:39 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.01.2014 um 22:27 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: I just did a clean install of beta to be sure and the issue persists. Indeed there is no 'start' at line 879 in my system as well. I tried on two different systems (both are 32 bit Linux). Are you able to compile the test file? I can process your example without problem even though the output doesn’t like for all cases like the text in the image. BTW: Can you attach your test file. Thanks for checking, Wolfgang. Attached the test file. Wolfgang -- Regards, Rajeesh mkiv-test.tex Description: TeX document ___ 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] Malayalam shaping with mkiv/LuaTeX
Am 08.01.2014 um 22:51 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: On Wed, Jan 8, 2014 at 10:39 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.01.2014 um 22:27 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: I just did a clean install of beta to be sure and the issue persists. Indeed there is no 'start' at line 879 in my system as well. I tried on two different systems (both are 32 bit Linux). Are you able to compile the test file? I can process your example without problem even though the output doesn’t like for all cases like the text in the image. BTW: Can you attach your test file. Thanks for checking, Wolfgang. Attached the test file. Remove \usemodule[font-odv], the code is part of the core and reloading it causes only problems. 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] Malayalam shaping with mkiv/LuaTeX
On Wed, Jan 8, 2014 at 10:53 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.01.2014 um 22:51 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: On Wed, Jan 8, 2014 at 10:39 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 08.01.2014 um 22:27 schrieb Rajeesh K Nambiar rajeeshknamb...@gmail.com: I just did a clean install of beta to be sure and the issue persists. Indeed there is no 'start' at line 879 in my system as well. I tried on two different systems (both are 32 bit Linux). Are you able to compile the test file? I can process your example without problem even though the output doesn’t like for all cases like the text in the image. BTW: Can you attach your test file. Thanks for checking, Wolfgang. Attached the test file. Remove \usemodule[font-odv], the code is part of the core and reloading it causes only problems. Indeed, that fixes the compilation! And 2-part matras are fine now. But the output (shaping) is not what is expected as you have observed. Notably: 1. When a pre-base matra follows the akhn ligatures are broken 2. pref, pstf and blwf ligatures are not formed -- Regards, Rajeesh ___ 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] Malayalam shaping with mkiv/LuaTeX
On 1/4/2014 10:36 PM, Rajeesh K Nambiar wrote: Hello, especially Hans and Kai, I have succeeded to an extent in adding Malayalam shaping to the existing Devanagari shaping. Being a complete novice in Lua and mkiv, I'm at a point where your expertise is needed to proceed further. Please find the attached patch, test case listed below and expected rendering for comparison. Additionally needed to support: in next beta (some a bit different) 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] Malayalam shaping with mkiv/LuaTeX
On Mon, Jan 6, 2014 at 10:33 PM, Hans Hagen pra...@wxs.nl wrote: On 1/4/2014 10:36 PM, Rajeesh K Nambiar wrote: Hello, especially Hans and Kai, I have succeeded to an extent in adding Malayalam shaping to the existing Devanagari shaping. Being a complete novice in Lua and mkiv, I'm at a point where your expertise is needed to proceed further. Please find the attached patch, test case listed below and expected rendering for comparison. Additionally needed to support: in next beta (some a bit different) Thank you very much for incorporating it! Just hit this with latest beta (same test case as before): error: .../context/tex/texmf-context/tex/context/base/font-odv.lua:1603: attempt to call global 'setfield' (a nil value) -- Cheers, Rajeesh ___ 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 ___