Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text Markup
10-31-2011, 06:07 AM, (This post was last modified: 10-31-2011, 06:22 AM by RobertShiplett.)
#1
Text Markup
Note: in what follows series of '.' represents the intended non-breaking spaces.

The web challenge of formatting Friedrich Hoelderlin's Hyperions Schicksalslied in poem markup is that each successive line must be indented. Some internet poetry publishers who use HTML refuse to accept non-aligned text (too much trouble.)

At present my Curl {ln } text proc for lines of a poem is simply

{define-text-proc public {ln ...}:any
{return
{text text-preserve-whitespace?=true,
{splice ...}{br}
}}}

but the elegance is lost in practice as can be seen below:

{stanza

{ln \u00A0 IHR wandelt droben im Licht }
{ln \u00A0 . Auf weichem Boden, selige Genien! }
{ln \u00A0 .. Glänzende Götterlüfte }
{ln \u00A0 ... Rühren euch leicht, }
{ln \u00A0 ... Wie die Finger der Künstlerin }
{ln \u00A0 .... Heilige Saiten. }
}

|| A \u0000 would have the same effect; \u0020 will fail to preserve the spacing.

Is there another way to preserve the layout of these strings/lines ?

Well, what about this:
{stanza

. IHR wandelt droben im Licht
.. Auf weichem Boden, selige Genien!
... Glänzende Götterlüfte
.... Rühren euch leicht,
..... Wie die Finger der Künstlerin
...... Heilige Saiten.
}
|| using

{define-text-proc public {stanza2 ...}:any
{return
{paragraph text-preserve-whitespace?=true,
{splice ...} {br} \u0020
}}
}
|| But NOTE: no spaces in the declaration in front of that {splice } !

All that we lose is the line-by line formatting, but the result is very readable.

You can see the result at http://poets.aule-browser.com/hyperions-...slied.html

Here is the elegant, readable markup:

{poem

{ln \u00A0 }
|| Title
{heading level=4, Hyperions Schicksalslied}

{ln \u00A0 }

{stanza
. IHR wandelt droben im Licht
.. Auf weichem Boden, selige Genien!
... Glänzende Götterlüfte
.... Rühren euch leicht,
..... Wie die Finger der Künstlerin
...... Heilige Saiten.
}
{stanza
. Schicksallos, wie der schlafende
.. Säugling, atmen die Himmlischen;
... Keusch bewahrt
.... In bescheidener Knospe,
..... Blühet ewig
...... Ihnen der Geist,
....... Und die seligen Augen
........ Blicken in stiller
......... Ewiger Klarheit.
}
{stanza
. Doch uns ist gegeben,
.. Auf keiner Stätte zu ruhn,
... Es schwinden, es fallen
.... Die leidenden Menschen
..... Blindlings von einer
...... Stunde zur andern,
........Wie Wasser von Klippe
......... Zu Klippe geworfen,
.......... Jahr lang ins Ungewisse hinab.
}}
Robert Shiplett, Curlr
Fredericton NB

Canada
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Non-selectable characters amidst text RobertShiplett 1 5,065 09-09-2014, 03:16 AM
Last Post: RobertShiplett
  latest flashcard markup example RobertShiplett 1 4,552 04-02-2013, 08:23 PM
Last Post: RobertShiplett
  Curl as flashcard markup RobertShiplett 1 4,819 03-09-2013, 01:58 AM
Last Post: RobertShiplett
  Curl as a markup DSL for Russian Text RobertShiplett 1 6,422 09-24-2012, 01:17 PM
Last Post: alton
  row as text-proc RobertShiplett 0 3,058 08-14-2012, 09:52 PM
Last Post: RobertShiplett
  serialization for selections from a large off-line Japanese text resource RobertShiplett 0 2,943 06-04-2012, 11:20 PM
Last Post: RobertShiplett
  e-Textbook Markup RobertShiplett 0 3,344 01-22-2012, 02:02 AM
Last Post: RobertShiplett
  text-selectable? and DefaultDocument RobertShiplett 0 3,058 11-05-2011, 12:08 AM
Last Post: RobertShiplett
  Large Document Markup RobertShiplett 0 3,448 10-30-2011, 07:45 AM
Last Post: RobertShiplett
  Protected Text RobertShiplett 0 3,345 10-11-2011, 09:17 PM
Last Post: RobertShiplett
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('331')