https://bugs.documentfoundation.org/show_bug.cgi?id=137644
--- Comment #10 from Buovjaga <[email protected]> --- (In reply to Buovjaga from comment #7) > The discussion with Mike really made me believe that we could try getting > rid of these parameters and just display everything (ie. no widget solutions > or anything fancy). Then, if users complain, we can consider what to do. I > have a feeling there will be no complaints, if the content is organised in a > neat way. Returning to this after some years of thinking, the main issue with this is the <switchinline> elements. We can't skip them in the HTML renderer because the result would be nonsense. So there can be no Gordian Knot type of solution to this. However, we have a second best solution, which would require a fair amount of preparatory work, but hopefully could be automatic in the applying stage. We have to ask all the translators what would be a regular expression that we could use to do a mass-replacement in the translations to get rid of these switchinlines. Before that, we would of course need to have the replacement logic for the English source for all the cases. Example from source/text/sbasic/shared/00000002.xhp: <paragraph role="paragraph" id="par_id3154013" xml-lang="en-US">In $[officename] Basic, a <emph>method parameter</emph> or a <emph>property</emph> expecting unit information can be specified either as integer or long integer expression without a unit, or as a character string containing a unit. If no unit is passed to the method the default unit defined for the active document type will be used. If the parameter is passed as a character string containing a measurement unit, the default setting will be ignored. The default measurement unit for a document type can be set under <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - (Document Type) - General</emph>.</paragraph> This would turn into the following: <paragraph role="paragraph" id="par_id3154013" xml-lang="en-US">In $[officename] Basic, a <emph>method parameter</emph> or a <emph>property</emph> expecting unit information can be specified either as integer or long integer expression without a unit, or as a character string containing a unit. If no unit is passed to the method the default unit defined for the active document type will be used. If the parameter is passed as a character string containing a measurement unit, the default setting will be ignored. The default measurement unit for a document type can be set under <emph>Tools - Options</emph> (<emph>%PRODUCTNAME - Preferences</emph> on macOS) <emph> - (Document Type) - General</emph>.</paragraph> -- You are receiving this mail because: You are the assignee for the bug.
