Menu

formatted text in notes

Help
Tim Hockin
2010-01-03
2013-05-30
  • Tim Hockin

    Tim Hockin - 2010-01-03

    I have some formatted (verse) text I would like to include in a note field.  Is there a way to embed blockquote or pre HTML tags or something?

     
  • Anonymous

    Anonymous - 2010-01-03

    Nope, or at least almost no.

    To allow anything like that on web based software with like PGV's architecture (where Privacy has to be paramount) would be asking for trouble. Such embedded code is a hackers dream, so it has been religiously removed throughout.

    The tiniest of code is allowed for, and only in "Shared Notes" ( those stored as a level 0 NOTE record, available to be linked to any individual or family record). To allow these to be used for census and similar shared data just two formatting elements are available :

    The "|" character either side of text content will implement a 'table cell' style.

    A combination of ".b." within  such an element, before the text will
    bolden the text.

    Either of these can ONLY be used on the second and subsequent rows of text

    A typical entry would therefore read:

    Test Note

    |.b.This| is a test|

    and display as:

    Test Note

    **This**       is a test

    The best solution is to either PDF the verse and add it as a media item, or link to a formatted page via URL.

     
  • Greg Roach

    Greg Roach - 2010-01-03

    PGV should preserve line breaks.  Wouldn't this be enough to format your verse?

     
  • Tim Hockin

    Tim Hockin - 2010-01-03

    No.  Not all lines are left-justifed.  I need it to preserve whitespace and serve it as   escapes.  I'd also like it to handle italics, bold, and underline.

    Maybe RichText or very basic Markdown..

     
  • Tim Hockin

    Tim Hockin - 2010-01-03

    edit: serve spaces as " escapes :)

     
  • Stephen Arnold

    Stephen Arnold - 2010-01-03

    Tim  
         You can force the indentation with hard spaces (as I did here), but you'll be unable to direct the text in a not to change fonts, be **BOLD**, *Italic*, or <u>underlined</u>. As Kiwi said, PGV allows no encoding or html formatting. It is disabled for security reason to block spurious code insertion.  
    -Stephen

     
  • Tim Hockin

    Tim Hockin - 2010-01-03

    Hard spaces?   Multiple spaces get collapsed when displayed…

     
  • Wes Groleau

    Wes Groleau - 2010-01-04

    &nbsp;  - does that work?

     
  • Tim Hockin

    Tim Hockin - 2010-01-04

    I don't know what "hard spaces" means.  Manually indenting with the space character does not work - HTML collapses them all.

    See http://hockin.org/genealogy/individual.php?pid=I79&ged=hockin - the note under Occupation has formatted (indented) lines which get scrambled.

     
  • Stephen Arnold

    Stephen Arnold - 2010-01-04

    Tim 
    Hard space the more common term for a   
    On a MAC, this is easy-peasy with an Option-Space. According to the above wikipedia item, a WIN PC would be entered as Alt+0160 (typed on numeric keypad).  I've tested and used the MAC equivalent on many of my NOTEs to provide indentation, but don't currently have access to a windoze machine to check it.  
    -Stephen

      : http://en.wikipedia.org/wiki/Non-breaking_space

     
  • Laie Techie

    Laie Techie - 2010-01-04

    +1 for Markdown support. Markdown is easy to read, even if it's not translated to font format, and has been in use for decades in Usenet.

     
  • Greg Roach

    Greg Roach - 2010-01-04

    > +1 for Markdown support

    But isn't markdown the abominable system that SF uses for these forums that everyone bitches about.  Keep it out of PGV.

    When I type an underscore, it is because I want a sodding underscore.

     
  • Tim Hockin

    Tim Hockin - 2010-01-04

    That's why I said "some form of".  Markdown has issues, to be sure.

    at this point since it has to be backwards-friendly, I'd settle for translating spaces to nbsps automatically in notes fields.  Emphasis on automatically.

     

Log in to post a comment.