Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


On Wed, Apr 6, 2016 at 4:39 PM, Kolbjørn Stuestøl
<kolbjoern@stuestoel.no> wrote:
Sometimes the <emph> tag is inserted before and after all other XML tags
like this (from Help):

   <variable id="tabelleinhalte">Open a spreadsheet document, choose
   <emph><switchinline select="sys">[…]

This is invalid according to document syntax definition. switchinline
is not listed as allowed subelement of "emph".

Other times before and after each emphasized word(s) like this:

   <variable id="tabelleinhalte">Open a spreadsheet document, choose
   <switchinline select="sys"><caseinline
   select="MAC"><emph>%PRODUCTNAME -
   Preferences</emph></caseinline><defaultinline><emph>Tools -
   Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME
   Calc - View</emph></variable>

This is valid.

Does it matter which method I am using?

Yes. Some are valid combinations according to the helpfile
specification, others are invalid.

The specification is here:
https://cgit.freedesktop.org/libreoffice/help/tree/helpers/xmlhelp.dtd

https://cgit.freedesktop.org/libreoffice/help/tree/helpers/xmlhelp.dtd#n91

<!ELEMENT emph (#PCDATA | item | comment | help-id-missing)*>

<emph> can contain one or more of PCDATA (i.e. actual text content),
<item> tags, <comment> tags and <help-id-missing tags>, but no other
elements, specifically switchinline is not listed.

ciao
Christian

-- 
To unsubscribe e-mail to: l10n+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.