Mojca Miklavec wrote:
> On 9/14/07, Hans Hagen wrote:
>> Mojca Miklavec wrote:
>>> Hello,
>>>
>>> I was trying to figure out how to process simple HTML files with the
>>> new code, but I fail to understand the details. Here's a simple file I
>>> would like to process:
>>>
>> keep in mind that this is still somewhat experimental
> 
> Sure :)
> That's why I'm sending files for testing :) :) :)

- i'll make a table mapper (need it anyway), cals tables are already 
provided

- idem for preformatted and verbatim

- your code:

d[k] = dk:gsub(" ",' ')
dk = d[k]
d[k] = dk:gsub("≤", '\\mathematics{\\le}')

local dk = d[k]
dk = dk:gsub(" ",' ')
dk = dk:gsub("≤", '\\mathematics{\\le}')
d[k] = dk

or ....

mojcasentities = {
        nbsp = " ",
        le   = "'\\mathematics{\\le}'
}

local d[k]= d[k]:gsub("&(.-);",mojcasentities)


(there probably already is code for that)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to