Page 1 of 1

Table link labelling

Posted: Tue Sep 06, 2022 10:04 am
by abacus66
Hi there!
I want to change link to table. I have set "args.tablelink.style" to NUMBER and have got "В Таблица 1 представлены...". But I want the link label to be "В Табл. 1 представлены...".

Re: Table link labelling

Posted: Tue Sep 06, 2022 2:23 pm
by julien_lacour
Hello,

If you are using the DITA Map PDF - based on XSL-FO transformation scenario, you need to change the value of the <variable id="Table.title"> in org.dita.pdf2/cfg/common/vars/ru.xml.

Regards,
Julien

Re: Table link labelling

Posted: Tue Sep 06, 2022 6:41 pm
by abacus66
If you are using the DITA Map PDF - based on XSL-FO transformation scenario, you need to change the value of the <variable id="Table.title"> in org.dita.pdf2/cfg/common/vars/ru.xml.
No, you didn't understand. I want to change "link to table", not table title.
"In Table 1 represented...". But I want the link label to be "In Tab. 1 represented..."
Besides, we are in the "Oxygen PDF Chemistry" forum, so XSL-FO is not applicable :D

Re: Table link labelling

Posted: Wed Sep 07, 2022 1:34 pm
by julien_lacour
Hello,

My mistake, the modification I gave you works in fact for both XSL-FO and HTML5 & CSS PDF transformations.
The "Table.title" text is used for link to tables too.

Regards,
Julien

Re: Table link labelling

Posted: Wed Sep 07, 2022 8:09 pm
by abacus66
julien_lacour wrote: Wed Sep 07, 2022 1:34 pm My mistake, the modification I gave you works in fact for both XSL-FO and HTML5 & CSS PDF transformations.
The "Table.title" text is used for link to tables too.
But the file "org.dita.pdf2\cfg\common\vars\ru.xml" is not used in the "com.oxygenxml.pdf.css" scenerio...

Re: Table link labelling

Posted: Thu Sep 08, 2022 8:52 am
by abacus66
abacus66 wrote: Wed Sep 07, 2022 8:09 pm But the file "org.dita.pdf2\cfg\common\vars\ru.xml" is not used in the "com.oxygenxml.pdf.css" scenerio...
My fault, somehow "ru.xml" from "org.dita.pdf2" is used by "com.oxygenxml.pdf.css" scenerio. But if I do not want to tweak the oxygen internals, I have found the way:

Code: Select all

*[class ~= "map/map"] *[class ~= "topic/xref"][type = "table"] {
   content: "Табл.\a0" target-counter(attr(href), tablecount, decimal);
}