From me at elliottcable.name Sun Jun 8 21:39:59 2008 From: me at elliottcable.name (elliottcable) Date: Sun, 8 Jun 2008 17:39:59 -0800 Subject: [Maruku-users] (no subject) Message-ID: I'm not sure exactly how many bugs are coming into play here, it's a rather complicated mess of footnotes, links, and abbreviations - but the gist of the matter is that maruku goes 'boom' when there's different kinds of footer elements coming into play together. This is bad, because it makes the most sense to order the elements in the same order as they appear in the text. A user shouldn't have to order them a certain way, or worse, separate them out, due to technical restrictions. Here's my example (yes, it's a blog post, yes, it's in a git repository): http://github.com/elliottcable/blog/tree/38b4293844d6c2636817f5fa902ba3bb17ca7848/posts/webkit_safari_3_1_and_the_css_font_face_declaration.markdown The relevant section is hilighted, near the bottom - I've got footnotes, links, and abbreviation definitions all bundled together, as I usually enter them - in the order that they show up in the document itself. --------------------------------------------------------- elliott cable _ _ +1.919.636.4204 ( \---/ ) elliottcable.name ) . . ( me at elliottcable.name ____________________,--._(___Y___)_,--.__________________ `--' `--' THIS MESSAGE (and any attached materials) IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL, AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you, the reader of this message, are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting all traces of it from your computer. Thank you. five.sentenc.es _________________________________________________________ Signature licensed under Creative Commons BY-NC-SA 3.0 Do not use it, unless you follow those terms! From me at elliottcable.name Sun Jun 8 21:39:59 2008 From: me at elliottcable.name (elliottcable) Date: Sun, 8 Jun 2008 17:39:59 -0800 Subject: [Maruku-users] Multiple document-foot elements Message-ID: I'm not sure exactly how many bugs are coming into play here, it's a rather complicated mess of footnotes, links, and abbreviations - but the gist of the matter is that maruku goes 'boom' when there's different kinds of footer elements coming into play together. This is bad, because it makes the most sense to order the elements in the same order as they appear in the text. A user shouldn't have to order them a certain way, or worse, separate them out, due to technical restrictions. Here's my example (yes, it's a blog post, yes, it's in a git repository): http://github.com/elliottcable/blog/tree/38b4293844d6c2636817f5fa902ba3bb17ca7848/posts/webkit_safari_3_1_and_the_css_font_face_declaration.markdown The relevant section is hilighted, near the bottom - I've got footnotes, links, and abbreviation definitions all bundled together, as I usually enter them - in the order that they show up in the document itself. Here's the errors I am getting (by the way, I have to say I love the error format - the "Maruku tells you:" block at the top is kind of superfluous, but the rest is so very verbose and beautiful - props on that!): --------------------------------------------------------- ___________________________________________________________________________ | Maruku tells you: + --------------------------------------------------------------------------- | Unclosed span (waiting for ["*"]) | --------------------------------------------------------------------------- | typography moves into the 21st century?N *[W3C]: World Wide Web ConsortiumEOF | ---------------------------------------------------------------------------| | + --- Byte 565 | Shown bytes [490 to 75] of 565: | > *[CSS]: Cascading Style Sheets | > *[.EOT]: Embedded OpenType | > [^eot]: To give Microsoft a little credit, something I rarely do... Yes, I'm aware Microsoft submitted EOT to the W3C as a proposal - the problem isn't with their attempts to make it non-proprietary, but with the basic concept of making typefaces on the web DRMed. Look what such attempts have done to the music and video industry - simply decimated it. Do we really want to see the same thing happen to our beloved medium as typography moves into the 21st century? | > *[W3C]: World Wide Web Consortium | | At line 88 | text | *[.EOT]: Embedded OpenType| | footnote_text | [^eot]: To give Microsoft a little credit, something I rarely do... Yes, I'm aware Microsoft submitted EOT to the W3C as a proposal - the problem isn't with their attempts to make it non-proprietary, but with the basic concept of making typefaces on the web DRMed. Look what such attempts have done to the music and video industry - simply decimated it. Do we really want to see the same thing happen to our beloved medium as typography moves into the 21st century?| | text | *[W3C]: World Wide Web Consortium| | ref_definition --> | [W3C]: (World Wide Web Consortium)| | ref_definition | [spec]: ()| | text | *[DRY]: Don't Repeat Yourself| | | | Elements read in span: | -md_link(["W3C"],"w3c") | Current string: | ": World Wide Web Consortium" + --------------------------------------------------------------------------- !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/ errors_management.rb:49:in `maruku_error' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/input/ parse_span_better.rb:210:in `read_span' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/input/ parse_span_better.rb:411:in `read_em' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/input/ parse_span_better.rb:177:in `read_span' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/input/ parse_span_better.rb:46:in `parse_span_better' \___________________________________________________________________________ ___________________________________________________________________________ | Maruku tells you: + --------------------------------------------------------------------------- | Could not find ref_id = "css" for md_link(["CSS"],"css") | Available refs are ["spec", "w3c", "diavlo", "museo"] + --------------------------------------------------------------------------- !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/ errors_management.rb:49:in `maruku_error' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:696:in `to_html_link' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:939:in `send' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:939:in `array_to_html' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:930:in `each' \___________________________________________________________________________ Not creating a link for ref_id = "css". ___________________________________________________________________________ | Maruku tells you: + --------------------------------------------------------------------------- | Could not find ref_id = "eot" for md_link([".EOT"],"eot") | Available refs are ["spec", "w3c", "diavlo", "museo"] + --------------------------------------------------------------------------- !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/ errors_management.rb:49:in `maruku_error' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:696:in `to_html_link' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:939:in `send' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:939:in `array_to_html' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:930:in `each' \___________________________________________________________________________ Not creating a link for ref_id = "eot". ___________________________________________________________________________ | Maruku tells you: + --------------------------------------------------------------------------- | Could not find footnote '^jos' + --------------------------------------------------------------------------- !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/ errors_management.rb:49:in `maruku_error' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:315:in `render_footnotes' !/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `each_with_index' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:302:in `each' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:302:in `each_with_index' \___________________________________________________________________________ ___________________________________________________________________________ | Maruku tells you: + --------------------------------------------------------------------------- | Could not find footnote '^eot' + --------------------------------------------------------------------------- !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/ errors_management.rb:49:in `maruku_error' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:315:in `render_footnotes' !/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `each_with_index' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:302:in `each' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:302:in `each_with_index' \___________________________________________________________________________ ___________________________________________________________________________ | Maruku tells you: + --------------------------------------------------------------------------- | Could not find footnote '^eot' + --------------------------------------------------------------------------- !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/ errors_management.rb:49:in `maruku_error' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:315:in `render_footnotes' !/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `each_with_index' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:302:in `each' !/usr/local/lib/ruby/gems/1.8/gems/maruku-0.5.8/lib/maruku/output/ to_html.rb:302:in `each_with_index' \___________________________________________________________________________ --------------------------------------------------------- elliott cable _ _ +1.919.636.4204 ( \---/ ) elliottcable.name ) . . ( me at elliottcable.name ____________________,--._(___Y___)_,--.__________________ `--' `--' THIS MESSAGE (and any attached materials) IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL, AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you, the reader of this message, are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting all traces of it from your computer. Thank you. five.sentenc.es _________________________________________________________ Signature licensed under Creative Commons BY-NC-SA 3.0 Do not use it, unless you follow those terms! From andrea at cds.caltech.edu Sun Jun 8 22:40:29 2008 From: andrea at cds.caltech.edu (Andrea Censi) Date: Sun, 8 Jun 2008 19:40:29 -0700 Subject: [Maruku-users] Multiple document-foot elements In-Reply-To: References: Message-ID: The main bug I discovered was that abbreviations and footnote definitions were allowed only at the beginning of the line. I hope I haven't broken anything else. Could you check the attached html is the desired rendering? -- Andrea Censi PhD student, Control & Dynamical Systems, Caltech http://www.cds.caltech.edu/~andrea/ "Life is too important to be taken seriously" (Oscar Wilde) -------------- next part -------------- An HTML attachment was scrubbed... URL: