OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-12-2007, 20:16
knowbodynow knowbodynow is offline
Senior Member
 
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 434
Default Identifying specific lines of paragraph text

Hello, I'm wondering if anyone can think of a way of going through paragraph text and applying a specific text style to all lines that occur immediately before a blank line of text. I sometimes work with song lyrics originally stored in text files. Typically verses are shown by inserting a blank line so the text has two line returns in a row. I want to be able to strip out the blank lines but increase the paragraph spacing (space below) for the last line of each verse. Can anyone give me any pointers on how to achieve this.

Thanks,

Chris (Hunt)
Reply With Quote
  #2  
Old 05-12-2007, 03:28
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

The most natural way is to use any text editor (be it even MS Word) that can search for two kinds of line breaks and replace them:
Code:
line1¶
line2¶
line3¶
¶
¶
line1¶
line2¶
line3¶
¶
¶

into this:

line1«
line2«
line3¶
line1«
line2«
line3¶
Then it is enough to apply one style with large after-paragraph spacing to the whole song.
Reply With Quote
  #3  
Old 05-12-2007, 19:41
knowbodynow knowbodynow is offline
Senior Member
 
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 434
Default

Thanks for the reply, what are the two different kinds of line break. Can they be applied via vba? I'd rather avoid using a text editor if possible.

Cheers,

Chris
Reply With Quote
  #4  
Old 06-12-2007, 02:58
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

in CorelDRAW hard return is vbCr, or chr(13), soft return is chr(11).
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
leading (line spacing) between lines of artistic text that have different font size michael_maberly General 4 15-07-2007 11:07
Striping a word down to the first letter only knowbodynow CorelDRAW/Corel DESIGNER VBA 9 19-04-2007 15:14
Paragraph or text positionX and Y BUL CorelDRAW/Corel DESIGNER VBA 5 05-04-2007 16:06
Paragraph Text in Photo-Paint? CgNeophyte General 1 11-04-2006 18:16
corelDRAW paragraph text mirror "bug" hellraeser General 2 08-03-2006 23:17


All times are GMT -5. The time now is 21:21.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com