Getting Started with Adobe After Effects - Part 6: Motion Blur
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.

TSQL Challenge 73 - Implement Word Wrapping in TSQL

16   Comments   

Unsubscribe from Notifications
  • Do we only wrap on space ? ( Are the punctuation characters part of the word ? ).
    Is there always a space after a ',' ?
    Can there be multiple spaces between words ?

    commented on Jan 9 2012 2:35AM  .  Report Abuse This post is not formatted correctly
    Bert
    57 · 3% · 1038
  • There will always be only one space separating words. I will ask this to be added as a rule.

    commented on Jan 9 2012 4:02AM  .  Report Abuse This post is not formatted correctly
    dishdy
    17 · 10% · 3262
  • We have added Rule 4. There will always be only one space separating words.

    commented on Jan 9 2012 4:13AM  .  Report Abuse This post is not formatted correctly
    puzzles
    13 · 13% · 4057
  • What are the word-breaking rules? In your example "Encyclopedia" is hyphenated. What are the rules to determine where a word can be broken?

    commented on Jan 11 2012 12:02AM  .  Report Abuse This post is not formatted correctly
    Marc Jellinek
    97 · 2% · 546
  • When a word is longer than the wrap position value only in this case should you split it, placing the first part into the next output row and adding a dash at the wrap position.

    commented on Jan 11 2012 12:30AM  .  Report Abuse This post is not formatted correctly
    Bert
    57 · 3% · 1038
  • There are no traditional language rules regarding hyphenation of words. You should put WP-1 characters of the word plus a dash into the next output row and the rest into the subsequent output row.

    commented on Jan 11 2012 3:38AM  .  Report Abuse This post is not formatted correctly
    dishdy
    17 · 10% · 3262
  • There is a rule "When a word crosses the wrap position you should place the entire word into the next output row". Why in sample a row "they call it the present." break like

    1.they call it the 
    2.present.
    

    Word "the" cross the wrap position and should be in next row

    1.they call it 
    2.the present.
    

    Sample Data

    
    ID Text                                                     WrapPosition
    -- -------------------------------------------------------- ------------
    3  Everyday is a gift, that’s why they call it the present. 15
    
    ID WrapID Text
    -- ------ --------------------
    3  1      Everyday is a
    3  2      gift, that’s why 
    3  3      they call it the 
    3  4      present.
    
    
    commented on Jan 11 2012 3:47AM  .  Report Abuse This post is not formatted correctly
    Maxim
    68 · 3% · 827
  • Сorrect me if I misunderstood the rule

    commented on Jan 11 2012 5:01AM  .  Report Abuse This post is not formatted correctly
    Maxim
    68 · 3% · 827
  • For this row difference "Wrap Position" in "Sample Data" and "Sample Script" (in "Sample Data" -15, in "Sample Script" - 17)

    commented on Jan 11 2012 9:08AM  .  Report Abuse This post is not formatted correctly
    Maxim
    68 · 3% · 827
  • Sorry. The expected output is incorrect. I'll request to have it corrected.

    commented on Jan 11 2012 10:32AM  .  Report Abuse This post is not formatted correctly
    dishdy
    17 · 10% · 3262
Previous 1 | 2 Next

Your Comment


Sign Up or Login to post a comment.

Managed Windows Shared Hosting by OrcsWeb

Copyright © Rivera Informatic Private Ltd.