Hi Bert,
Could you please explain What the correct syntax of the "entity" configuration
setting is for liblouisutdml?
Oops, of course I meant "internetAccess yes/no". I used this keyword in the
config file in its correct form. Sorry for the mental bug occuring while typing
the message.
Once I manage to download some DTDs, for instance the one you recommended, is
there a way to tell liblouisutdml to use it, other than inserting a DOCTYPE
line in every html input file?
Thanks for your answer.
Best Regards, Norbert.
From: Bert Frees
Sent: Tuesday, May 30, 2017 7:36 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: MathML question
Hi Norbert,
According to the documentation at
http://liblouis.org/documentation/liblouisutdml.html#xml, it seems indeed that ;
the "entity" configuration setting could be used for the purpose of defining
single entities.
You said you tried "internet yes", but did you mean "internetAccess"? If this
setting works it sounds like the recommended solution to me because it is not
specific to Liblouisutdml.
If you think it might be some firewall issue, try specifying a DTD that you
already downloaded to your local file system.
Hope this helps,
Bert
2017-05-30 18:18 GMT+02:00 Norbert Markus <hamilfonz@xxxxxxxxx>:
Hi Bert,
I tried out what you suggested.
I added a combined definition containing your suggestion that I also found in
other documentations.
Now the html file encapsulating a mathml expression starts with these lines:
<html xmlns="http://www.w3.org/1999/xhtml";>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" ;>
<head> ...
The math tag in the document contains this namespace reference attribute:
<math xmlns='http://www.w3.org/1998/Math/MathML' ...>
Then I applied "internet yes" in the configuration file thinking that
liblouisutdml would need a net connection in order to access any referred DTDs.
But it did not help. I cannot really make sure whether liblouisutdml indeed
connected to anything or attempted to do so. There was no warning message
issued by the firewall that may mean several things but the bottom line is that
changing "internet no" to yes did not affect the braille output. Thus it keeps
containing ⁢ in the braille math expression.
I also kept the logs produced by file2brl under surveyllance but nothing
particular appeared in them related to the affected parts of the input file.
Did I do something incorrectly?
Another related question:
I can see that liblouisutdml's config files may contain any number of lines
starting with the keyword "entity" followed by an xml entity declaration.
What is the proper way/syntax of these lines?
Can this feature be used to provide liblouisutdml with the missing character
entities?
Thanks in advance for your help.
Best Regards, Norbert.
From: Bert Frees
Sent: Friday, May 26, 2017 5:37 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: MathML question
Any entity that you use in the document should be declared in the DTD. For
example, an HTML document with MathML might use this DTD:
https://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd, which includes this ;
entity declaration:
<!ENTITY InvisibleTimes "⁢">
Even with the right DTD, I'm unsure whether Liblouisutdml handles
"⁢" correctly. You have to try it out. In theory Liblouisutdml
should be able to handle it.
Your "noback correct "⁢"" solution is fine as a workaround but
is not really the proper way to do it.
2017-05-26 16:44 GMT+02:00 Norbert Markus <hamilfonz@xxxxxxxxx>:
Hi Bert,
The input file is an HTML containing mathml blocks.
The only occurrence of the string "InvisibleTimes" in the file is in a
mathml block as an operator:
<mo>⁢</mo>
The html file refers to a css file that I currently don't have and I don't
see how a CSS file could influence the interpretation/treatment of such
entities by liblouisutdml.
A self-experimented solution is now on my behalf is that I added a line to
the nemeth.ctb file:
noback correct "⁢" ?
Is this an acceptable way to tackle such situations?
Best Regards, Norbert.
From: Bert Frees
Sent: Friday, May 26, 2017 11:35 AM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: MathML question
Hi Norbert,
Is the entity declared in the input XML?
2017-05-25 0:55 GMT+02:00 Norbert Markus <hamilfonz@xxxxxxxxx>:
Hi All,
An HTML source file containing mathML blocks produce some unvanted
sequences in the braille output.
One of them is an entity:
⁢
(This is a multiplication operator that should not be displayed.)
Actually, the braille output contains its transcription like
_&,invisible,times;
(the excerpt above is given using USA braille characters)
Can you help me find the most appropriate way to prevent this from
appearing in the braille material?
Another question:
When a math line is too long in braille, liblouisutdml breaks it and puts
a hyphen at the end of the first line. This hyphen looks exactly like a minus
sign. Is this legal in Nemeth math code or should it be prevented from
happening? If it should, do you know how?
A third question:
Does anyone happen to know the Nemeth braille representation for the
product symbol for a product series. In TeX, it is \prod. Its hexadecimal
unicode is \x220f.
Syntactically it is the same as a summa but instead of adding the
elements of the series, it multiplies them.
In xml/html sources that I am trying to translate into Nemeth math, the
hexadecimal character code for this symbol appears. Does liblouis already
handle the braille representation of this symbol or should it be introduced in
a table?
Thanks a lot for your answers.
Best Regards, Norbert.