JafSoft Support Forums  
  Products:
AscToHTM (text to HTML) / AscToPDF (text to PDF) / AscToRTF (text to RTF) / Detagger (HTML to text and markup removal) 

 
  Forum options:
Forum Index  Register  Login  Search  FAQ  Log Out
Member options:
My Profile  Inbox  Member List  Address Book  My Subscription  My Forums 
 
 

Note: Some forums require a login other than "Guest" in order to post messages and replies


Remove gridlines & Bold some text

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums > [Product forums] > AscToRTF > Remove gridlines & Bold some text Page: [1]
Login
Message << Older Topic   Newer Topic >
Remove gridlines & Bold some text - 5/16/2006 12:05:05 AM   
pot_sumper

 

Posts: 1
Joined: 5/15/2006
Status: offline
I'm testing some conversions in the asctortf since the asctopdf isn't as far along...  and have a few questions:
  1. Is there any way to tell asctortf to turn off all the grid lines in the output file?
  2. I'm able to put *'s on either side of specific text using an .inc file, but when asctortf creates the output file, it just prints the *'s rather than setting the text between them to bold.
  3. The input files have a bunch of subheaders like:
        something: prints here
        another one: prints there
    I'm trying to figure out how to tell it to make these come out bolded like:
        something: prints here
        another one: prints there

    Any suggestion for how to accomplish this?  The only pattern is that there is always a colon+space  ': ' on the subheader line and the line is always blank except for the subheader text.

Thanks.
Post #: 1
RE: Remove gridlines & Bold some text - 5/16/2006 9:57:17 AM   
Jaf

 

Posts: 70
Joined: 2/1/2006
Status: offline
quote:


Is there any way to tell asctortf to turn off all the grid lines in the output file?


If you mean the gridlines shown by Word, that's an option in Word, and not something in the document itself.

quote:


I'm able to put *'s on either side of specific text using an .inc file, but when asctortf creates the output file, it just prints the *'s rather than setting the text between them to bold.


I'm not sure why that should be.  If you'd care to email me some example files I'll happily investigate this for you

quote:



The input files have a bunch of subheaders like:
   something: prints here
   another one: prints there
I'm trying to figure out how to tell it to make these come out bolded like:
   something: prints here
   another one: prints there

Any suggestion for how to accomplish this?  The only pattern is that there is always a colon+space  ': ' on the subheader line and the line is always blank except for the subheader text.


Probably the best thing to do is to try and get the software to recognise these as headings.  There are a couple of options here.  If the "something:"s are all well known, then you can use the "Heading key phrases" policy to define them.

On the Conversion options -> Analysis policies -> Headings menu option tab, you can enter phrases to be interpreted as signalling a heading when they appear at the start of a line.

so for example a value of

  "", "something:|another one:"

would allow lines begining "something:" and "another one:" to be recognised as level 2 headings.  Note the match text is case sensitive, and it's a good idea to include the colon to reduce the chances of false matches elsewhere in the text.

Another possibility - if the list of possible sub-headings isn't known - would be to use a Text Command to treat all lines containing a colon as a heading.  This is less than ideal if a colon is used in another context, but for some files it may be a suitable approach.  In this technique you'd add a line of the form

  treat_line containing string ":" as_header_2

to your Text Commands file.
 
One final approach would be to treat such lines as "definitions".  That is the part on the right of the colon is a definition of the heading to the left of the colon.  The results would be broadly similar to using <DL>,<DD> and <DT> tags in HTML.  However this would only allow bolding of the definition term, and isn't something supported by AscToPDF (or indeed that well by AscToRTF).


< Message edited by Jaf -- 5/27/2006 12:36:19 PM >

(in reply to pot_sumper)
Post #: 2
Page:   [1]
All Forums > [Product forums] > AscToRTF > Remove gridlines & Bold some text Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts