Giter VIP home page Giter VIP logo

mmade's People

Watchers

 avatar

mmade's Issues

string conversion of boxes somtimes fails due to the presence of options in the boxes

What steps will reproduce the problem?
1. <<XML`DocBook`
2. DocBookInlineEquation["id",moment''[x]==0]

What is the expected output? What do you see instead?
DocBook markup.
We see:
XML`DocBook`Private`toString::usb: Can't convert moment''[x]==0 into a string.
$Aborted

Please use labels and text to provide additional information.
This happens because XML`DocBook`Private`toStringKernel calls
XML`DocBook`Private`unStringableBoxesQ after stripping unwanted boxes.
unStringableBoxesQ correctly flags the boxes
RowBox[{RowBox[{SuperscriptBox[moment,\[Prime]\[Prime],MultilineFunction->None],
[,x,]}],==,0}]
as unstringable because of the presence of MultilineFunction->None.

I think this can be fixed by removing all options before the string
conversion. I don't know if any of the possible box options will be
important to the string conversion process, but my guess is that they are
not. Accordingly, /.optionPseudoPatternObject->Sequence[] should be used
after stripping the unwanted boxes so that all the leftover box options
will be removed.

Original issue reported on code.google.com by [email protected] on 8 Jan 2007 at 9:44

add baseline adjustment for html

as instructed at
http://groups.google.com/group/alt.html/browse_thread/thread/7e37a47ba02e1c1b
so that typeset graphics will be in line with the rest of the text

Original issue reported on code.google.com by [email protected] on 26 Nov 2006 at 4:01

non-graphical table cells can't have any line breaks in them

What steps will reproduce the problem?
1. Put a string with a newline character ( \n ) into an entry in a table or
just make an entry with spaces that should line break if the table takes up
too much width.
2. Export the table with DocBookTable
3. Notice the newline character appears in the output xml (specific support
was added for this), but is ignored by the XSL processor such that the
table contains no newline after XSL transformation. If a long entry is
created instead, the problem with no line breaks is due to the lack of
automatic graphical line breaking (because the author did not specify
PageWidth explicitly). In addition, Firefox will not line break MathML
unless a new mrow is started, which Mathematica will not do (even if it is
fed a Cell object with an appropriately small PageWidth).

What is the expected output? What do you see instead?
A table with an entry that has a line break (or several line breaks). See 3.

Please use labels and text to provide additional information.
I propose adding a table entry parsing function that will "do what I want"
when given "typical" input. A "typical" entry in a table is a string of
space separated words, possibly with newline characters if the author is
trying to make a thin column. The next step up from that is a SequenceForm
containing more than one string and/or general expression. My parsing
function would be able to handle both of those. A third way of making a
table display with line wrapped columns is to use DisplayForm on a Cell
with its PageWidth Option set. A fourth way is to have content that, when
formatted, appears as the DisplayForm/Cell combo mentioned in step three.
My parsing function would not handle either of these two cases.

The entry parsing function should turn any top level SequenceForm into XML
sequences. All strings that are children of the top level SequenceForm or
that are themselves top level should be split into multiple string
sequences at word boundaries. Spaces should be preserved or added back in
after this string splitting. Hard new lines may be converted into line
break processing instructions. Any expressions that aren't strings should
be transformed in the regular fashion using DocBookInlineEquation. Since
the XML going into the source file will contain raw text instead of a
MathML object or graphic, the DocBook stylesheets should be able to line
break the entries as needed. BTW, any words that do not have spaces between
themselves and other objects that are exported by DocBookInlineEquation
should perhaps have a zero width space character inserted as a buffer to
provide a soft line break opportunity before the equation. See
http://www.oasis-open.org/archives/docbook-apps/200310/msg00130.html

Original issue reported on code.google.com by [email protected] on 9 Dec 2006 at 9:57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.