• Share
  • ?
  • Profiles ▼
  • Communities ▼
  • Apps ▼

Blogs

  • My Blogs
  • Public Blogs
  • My Updates
  • Administration
  • Log in to participate

▼ Tags

 

▼ Similar Entries

sync_wait.js and wai...

Blog: HermannSW
HermannSW 2700006U54
Updated
0 people like thisLikes 0
No CommentsComments 0

How to generate UUID...

Blog: HermannSW
HermannSW 2700006U54
Updated
0 people like thisLikes 0
No CommentsComments 0

Performance tuning t...

Blog: Application P...
NoelLewis 060001F069
Updated
1 people likes thisLikes 1
No CommentsComments 0

Howto: easy callout ...

Blog: HermannSW
HermannSW 2700006U54
Updated
0 people like thisLikes 0
No CommentsComments 0

DataPower as a REST ...

Blog: Me, myself an...
Offline 0600018ME9
Updated
1 people likes thisLikes 1
No CommentsComments 0

▼ Archive

  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • September 2018
  • March 2018
  • November 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • October 2016
  • May 2016
  • April 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011

▼ Blog Authors

HermannSW

View All Entries
Clicking the button causes a full page refresh. The user could go to the "Entry list" region to view the new content.) Entry list

๐–๐–†๐–‘๐–‘๐–”-๐–œ๐–Š๐–‘๐–™.๐–๐–˜๐–‘

HermannSW 2700006U54 | | Tags:  spec unicode black-letter datapower xslt stylesheet ‎ | 8,142 Views

I am a German, born 1965 in Dortmund. I did learn to read the old German characters in use until the 1st half of 20th century, but not to write them.

Today my attention was brought to this again by this tweet (pointing to a nice code piece):
https://twitter.com/pilif/status/535065994843406336

 

First I learned from Wikipedia that the black-letter characters were in use in Germany from 1150 until 1st half of 20th centurty:
http://en.wikipedia.org/wiki/Blackletter
http://en.wikipedia.org/wiki/Blackletter#Unicode

 

 

And that similar letters for use in mathematical formulas are called fraktur.

 



Then I wanted to see how much black-letter will be allowed in XSLT, and therefore started with  hello-world.xsl .

It just outputs "Hallo Welt!" which is German for "Hello world!":

 

Next I wanted to replace all ASCII characters in that stylesheet by their black-letter counterparts.

The string of all black-letter characters was given under above "...#unicode" Wikipedia link, and XPath translate() function๐–Š๐–“๐–ˆ๐–”๐–‰๐–Ž๐–“๐–Œ did the rest:

translate(
  .,
  'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
  '๐•ฌ๐•ญ๐•ฎ๐•ฏ๐•ฐ๐•ฑ๐•ฒ๐•ณ๐•ด๐•ต๐•ถ๐•ท๐•ธ๐•น๐•บ๐•ป๐•ผ๐•ฝ๐•พ๐•ฟ๐–€๐–๐–‚๐–ƒ๐–„๐–…๐–†๐–‡๐–ˆ๐–‰๐–Š๐–‹๐–Œ๐–๐–Ž๐–๐–๐–‘๐–’๐–“๐–”๐–•๐––๐–—๐–˜๐–™๐–š๐–›๐–œ๐–๐–ž๐–Ÿ'
)

 


Not surprisingly the stylesheet did not compile, it missed "version", "encoding" and other stuff required by XSLT 1.0 spec and did not know what "๐–›๐–Š๐–—๐–˜๐–Ž๐–”๐–“" and "๐–Š๐–“๐–ˆ๐–”๐–‰๐–Ž๐–“๐–Œ" should be. So I repeated compile-fix until the stylesheet finally compiled again. This is the result -- vi's syntax highlighting does not like black-letter ;-)

 

 

 

Here you can see it work:

$ coproc2 ๐–๐–†๐–‘๐–‘๐–”-๐–œ๐–Š๐–‘๐–™.๐–๐–˜๐–‘ dummy.xml http://dp2-l3:2223 ; echo
๐•ณ๐–†๐–‘๐–‘๐–” ๐–‚ ๐–Š๐–‘๐–™!
$ 
 

Hermann <myBlog/> <myTweets/> | <GraphvizFiddle/> | <xqib/> | <myCE/> <myFrameless/> | 

Modified on by HermannSW 2700006U54
  • Add a Comment Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry
Notify Other People
notification

Send Email Notification

+

Quarantine this entry

deleteEntry
duplicateEntry

Mark as Duplicate

  • Previous Entry
  • Main
  • Next Entry
Feed for Blog Entries | Feed for Blog Comments | Feed for Comments for this Entry