From jacsib at lutecium.org Tue Dec 1 10:50:22 2020 From: jacsib at lutecium.org (Jacques B. Siboni) Date: Tue, 01 Dec 2020 09:50:22 +0000 Subject: [l2h] alphabetic order Message-ID: Dear colleagues When dealing with non English languages, the alphabetic order is inappropriate in the Index. For instance in French: "acc?s" comes after "accusation" "?me" "?a" "?change" "?il" comes after "zone" Is there a way to force the alphabetic order a bit like it appears in any French dictionary? Thanks in advance and excuses if this topic has already been dealt with as an example you can take a look here: http://www.lutecium.org/mathemes/node2177.html All the best Jacques -- Jacques B. Siboni mailto:jacsib at Lutecium.org 8 pass. Charles Albert, F75018 Paris, France Tel: +33 142 287 678 Port: +33 612 536 959 Home Page: http://jacsib.lutecium.org/ Lutecium pages: http://www.lutecium.org From shige at iee.niit.ac.jp Tue Dec 1 12:09:33 2020 From: shige at iee.niit.ac.jp (Shigeharu TAKENO) Date: Tue, 1 Dec 2020 20:09:33 +0900 (JST) Subject: [l2h] use of html5 attributes In-Reply-To: <349b6abc-a824-3005-9b9f-e7b265e5d69b@retired.ethz.ch> References: <349b6abc-a824-3005-9b9f-e7b265e5d69b@retired.ethz.ch> Message-ID: <202012011109.0B1B9X0d011577@hp7700.my.domain> shige 12/01 2020 ---------------- Christian Mensing wrote: | I'm wondering if there is a way to apply attributes introduced | with html5. | I would like to set the "download" attribute for an anchor: | e.g. | | download course 1 | | I would like to use | \htmladdnormallink[download]{download course 1}{some_document.pdf} | or | \htmladdnormallink[download=name-for-client.pdf]{download course | 1}{document_name.pdf} | | I was playing around with\HTML code command, but did not succeed. I think current latex2html does not support DOWNLOAD attribute of A tag. For example, l2h translates \HTMLcode[href=some_document.pdf download]{A}{download course 1} to download course 1 Instead of \htmladdnormallink or \HTMLcode commands, you can use rawhtml environment to write raw HTML code in latex file under the html package: \begin{rawhtml} download course 1 \end{rawhtml} Please try. +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN shige at iee.niit.ac.jp TEL(&FAX): +81-257-22-8161 +========================================================+ From mensingc at retired.ethz.ch Tue Dec 1 13:04:34 2020 From: mensingc at retired.ethz.ch (Christian Mensing) Date: Tue, 1 Dec 2020 13:04:34 +0100 Subject: [l2h] use of html5 attributes In-Reply-To: <202012011109.0B1B9X0d011577@hp7700.my.domain> References: <349b6abc-a824-3005-9b9f-e7b265e5d69b@retired.ethz.ch> <202012011109.0B1B9X0d011577@hp7700.my.domain> Message-ID: <4dd1dec0-b162-62ab-f640-191b94381686@retired.ethz.ch> Dear Shigeharu TAKENO, thank you very much for clarifying. Usually I also use the rawhtml environment to define new commands. I tried your suggested code, and it works, of course. I understand it is too much overhead to consider all the html versions. However, I'm surprised how good html5 is implemented so far. Thank you and the other contributors for their effort Christian Mensing! On 12/1/20 12:09 PM, Shigeharu TAKENO wrote: > \begin{rawhtml} > href="some_document.pdf" download >download course 1 > \end{rawhtml} From shige at iee.niit.ac.jp Wed Dec 2 04:16:53 2020 From: shige at iee.niit.ac.jp (Shigeharu TAKENO) Date: Wed, 2 Dec 2020 12:16:53 +0900 (JST) Subject: [l2h] use of html5 attributes In-Reply-To: <4dd1dec0-b162-62ab-f640-191b94381686@retired.ethz.ch> References: <349b6abc-a824-3005-9b9f-e7b265e5d69b@retired.ethz.ch> <202012011109.0B1B9X0d011577@hp7700.my.domain> <4dd1dec0-b162-62ab-f640-191b94381686@retired.ethz.ch> Message-ID: <202012020316.0B23GrXG004443@hp7700.my.domain> shige 12/02 2020 ---------------- Christian Mensing wrote: | Usually I also use the rawhtml environment to define new | commands. I tried your suggested code, and it works, of course. | I understand it is too much overhead to consider all the html versions. | However, I'm surprised how good html5 is implemented so far. | | Thank you and the other contributors for their effort | | Christian Mensing! | | On 12/1/20 12:09 PM, Shigeharu TAKENO wrote: | > \begin{rawhtml} | > href="some_document.pdf" download >download course 1 | > \end{rawhtml} Another solution is to modify your versions/html5_0.perl, ===== from here ===== --- versions/html5_0.pl.ORG 2020-12-02 12:02:18.666207000 +0900 +++ versions/html5_0.pl 2020-12-02 12:02:59.334008000 +0900 @@ -199,13 +199,14 @@ $A_attribs = ",SHAPE,DIR,"; $A__SHAPE = $shape_type; $A__DIR = $dir_type; -$A_attribs_rx_list = join('',",HREF,NAME,REL,REV,CHARSET,TARGET,ACCESSKEY,COORDS,TABINDEX,ONFOCUS,ONBLUR",$style_attribs); +$A_attribs_rx_list = join('',",HREF,NAME,REL,REV,CHARSET,TARGET,ACCESSKEY,COORDS,TABINDEX,ONFOCUS,ONBLUR,DOWNLOAD",$style_attribs); $A__HREF_rx = $URL_type; $A__NAME_rx = $A__REL_rx = $A__REV_rx = $string_type; $A__CHARSET_rx = $A__TARGET_rx = $A__ACCESSKEY_rx = $CDATA_type; $A__COORDS_rx = $coord_type; $A__TABINDEX_rx = $num_type; $A__ONFOCUS_rx = $A__ONBLUR_rx = $script_type; +$A__DOWNLOAD_rx = $URL_type; $ACRONYM_attribs = ",DIR,"; $ACRONYM__DIR = $dir_type; ===== to here ===== and to use \HTMLcode command as \HTMLcode[href=some_document.pdf,download=file.pdf]{A}{download course 1} This will translate download course 1 with above patch. Well, space separated options \HTMLcode[href=some_document.pdf download=file.pdf]{A}{download course 1} and "download" without value \HTMLcode[href=some_document.pdf,download]{A}{download course 1} may not be recognized correctly. If specifying null value as \HTMLcode[href=some_document.pdf,download=]{A}{download course 1} it will translate download course 1 but I don't know whether it is correct or not for HTML5. +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN shige at iee.niit.ac.jp TEL(&FAX): +81-257-22-8161 +========================================================+