Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 06, 2016, 02:19:10 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Post Formatting options in Modify/Format Case  (Read 2222 times)

Boydon

  • Supporting Member
  • Joined in 2010
  • **
  • default avatar
  • Posts: 24
    • View Profile
    • Donate to Member
Post Formatting options in Modify/Format Case
« on: March 12, 2011, 12:17:49 PM »
I think that the "Break lines at position" feature is a little buggy.

What I would like to do is to copy a text, remove all the new lines characters and then tokenize the copied text every 25 chars.

The problem is that when I set the "Break lines at position" to 25, no mater what, the first token is always long 8 chars and the succeeding tokens are screwed up. Here is a picture of what I mean:

CHS Modify-Format bug.png

If you need I can paste the original text to allow you to reproduce the behavior.
« Last Edit: March 12, 2011, 12:20:17 PM by Boydon »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,406
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Post Formatting options in Modify/Format Case
« Reply #1 on: March 12, 2011, 12:42:18 PM »
paste me the original text so i can use it to improve.

it's trying to split at word breaks, but even that is not being done very well is it..  what i will do is add an option to not try to break at wordbreaks and just hard wrap every X characters, and see if i can fix the bug that has it spitting your - separated words wrongly too (i think the long lines without spaces/punctuation are confusing it).

should be a very fast fix.

Boydon

  • Supporting Member
  • Joined in 2010
  • **
  • default avatar
  • Posts: 24
    • View Profile
    • Donate to Member
Re: Post Formatting options in Modify/Format Case
« Reply #2 on: March 12, 2011, 01:05:30 PM »
Wow, very fast reply!

The original Text (I use code tags to have a mono-spaced font):
TOTALE-PAG00000000040046BMORPAG-TOT00000
000001783EQUOCAP-RAT00000000017506CQUOIN
T-RAT00000000020706DCONINT-COR0000000000
0000àCONINT-PRE00000000000000àQUOINT-PAM
00000000000000àQUOINT-CNT00000000000000à
IMPSOS-RAT00000000000000àSPERAT-RAT00000
000000050àSPEASS-RAT00000000000000àSPEIS
T-RAT00000000000000àCOMRIV-RAT0000000000
0000àCOMPRE-RAT00000000000000àCOMCOO-RAT
00000000000000àSPERIN-RAT00000000000000à
BOLRIN-RAT00000000000000àCOMERO-RAT00000
000000000àNOTAIO-RAT00000000000000àPERIT
O-RAT00000000000000àSPESOL-RAT0000000000
0000àMORAAP-PAG00000000001451EMORMMP-PAG
00000000000294AMORMMC-PAG00000000000037I
MORAAP-MAT00000000001451EMORMMP-MAT00000
000000294AMORMMC-MAT00000000000037IMORPA
G-MAT00000000000037IMORAAP-CON0000000000
1451EMORMMP-CON00000000000000àMORMMC-CON
00000000000294AMORPAG-CON00000000001745F
ABBUON-TOT00000000000000àABBUON-ACC00000
000000000àMORAAP-ACC00000000000000àMORMM
P-ACC00000000000000àMORMMC-ACC0000000000
0000à          00000000000000à         
00000000000000à          00000000000000à
          00000000000000à          00000
000000000à          00000000000000à     
     00000000000000à          0000000000
0000à          00000000000000à         
00000000000000à          00000000000000à
          00000000000000à          00000
000000000à          00000000000000à     
     00000000000000à          0000000000
0000à          00000000000000à         
00000000000000à          00000000000000à
          00000000000000à          00000
000000000à          00000000000000à     
     00000000000000à          0000000000
0000à          00000000000000à         
00000000000000à          00000000000000à
          00000000000000à          00000
000000000à          00000000000000àRINEG
O-DEL00000000000000àRINEGO-CAP0000000000
0000àRINEGO-INT00000000000000àQUOCAP-CNT
00000000000000àQUOCTN-CAL00000000000000à
QUOCTN-INT00000000000000à

Result I would like to obtain:
TOTALE-PAG00000000040046B
MORPAG-TOT00000000001783E
QUOCAP-RAT00000000017506C
QUOINT-RAT00000000020706D
CONINT-COR00000000000000à
CONINT-PRE00000000000000à
QUOINT-PAM00000000000000à
QUOINT-CNT00000000000000à
IMPSOS-RAT00000000000000à
SPERAT-RAT00000000000050à
SPEASS-RAT00000000000000à
SPEIST-RAT00000000000000à
COMRIV-RAT00000000000000à
COMPRE-RAT00000000000000à
COMCOO-RAT00000000000000à
SPERIN-RAT00000000000000à
BOLRIN-RAT00000000000000à
COMERO-RAT00000000000000à
NOTAIO-RAT00000000000000à
PERITO-RAT00000000000000à
SPESOL-RAT00000000000000à
MORAAP-PAG00000000001451E
MORMMP-PAG00000000000294A
MORMMC-PAG00000000000037I
MORAAP-MAT00000000001451E
MORMMP-MAT00000000000294A
MORMMC-MAT00000000000037I
MORPAG-MAT00000000000037I
MORAAP-CON00000000001451E
MORMMP-CON00000000000000à
MORMMC-CON00000000000294A
MORPAG-CON00000000001745F
ABBUON-TOT00000000000000à
ABBUON-ACC00000000000000à
MORAAP-ACC00000000000000à
MORMMP-ACC00000000000000à
MORMMC-ACC00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
          00000000000000à
RINEGO-DEL00000000000000à
RINEGO-CAP00000000000000à
RINEGO-INT00000000000000à
QUOCAP-CNT00000000000000à
QUOCTN-CAL00000000000000à
QUOCTN-INT00000000000000à

In case you wonder, this is not normal human readable text, but a COBOL crappy way of storing some particular information. :P

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,406
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Post Formatting options in Modify/Format Case
« Reply #3 on: March 12, 2011, 02:54:05 PM »
Try the latest download; note i havent told the updater about it so youll have to download manually or instruct updater to download even though it thinks it's not new.

Boydon

  • Supporting Member
  • Joined in 2010
  • **
  • default avatar
  • Posts: 24
    • View Profile
    • Donate to Member
Re: Post Formatting options in Modify/Format Case
« Reply #4 on: March 12, 2011, 03:42:02 PM »
Now it works perfectly! :)
Also the hotkey management is fixed. Thank you very much.

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,367
    • View Profile
    • Donate to Member
Re: Post Formatting options in Modify/Format Case
« Reply #5 on: March 12, 2011, 03:54:43 PM »
Try the latest download; note i havent told the updater about it so youll have to download manually or instruct updater to download even though it thinks it's not new.

That's some service!  :Thmbsup: :Thmbsup: