Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Apr 2008
    Posts
    2,154

    Default Replace With: null

    How using Replacements do I replace with null?

    Given that when Replace With: is empty, BC won't let me close the dialog box.

    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    Quote Originally Posted by chrisjj View Post
    How using Replacements do I replace with null?
    By nature, Replacements in BC define how text on one side is to be matched with text on the other side. Since null is the absence of text, such a match cannot occur and the definition of such a replacement is not allowed.
    BC v4.0.7 build 19761

  3. #3
    Join Date
    Apr 2008
    Posts
    2,154

    Default

    > By nature, Replacements in BC define how text on one side is to be matched with text on the other side.

    By documentation:
    Replacements identify repetitive changes that should be considered unimportant.
    and this replacement by null is defiintely one such change.

    > Since null is the absence of text, such a match cannot occur

    Thanks, but since it does if I make the replacement manually, I don't see why it cannot when BC makes the replacement automatically.

  4. #4
    Join Date
    Oct 2007
    Location
    Pennsylvania
    Posts
    1,772

    Default

    Text is considered unimportant if it has a matching element on the other side. Replacements performs a logical replacement of text on one side to match a specific value on the other side. As I mentioned above, replacing with a null does not satisfy the requirements of this design. If you want an element on one side to be unimportant, define a grammar element instead of a replacement and set the grammar element as unimportant.
    BC v4.0.7 build 19761

  5. #5
    Join Date
    Apr 2008
    Posts
    2,154

    Default

    > replacing with a null does not satisfy the requirements of this design.

    Here's hoping for a remedy to the fact this design cannot do automatically what the user can do manually.

    > If you want an element on one side to be unimportant, define a grammar element

    Not while that cannot be done without interfering with the file format for other sessions, thanks.

  6. #6
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    2,503

    Default

    As Michael said, replacements are designed to handle text changing from something to something else. We aren't gpoing to change that. If you want to ignore arbitrary text add it to the grammar and make it unimportant. That's currently harder than it needs to be, especially for one-off things like this, and we are planning on improving that.
    Zo P Scooter Software

  7. #7
    Join Date
    Apr 2008
    Posts
    2,154

    Default

    > replacements are designed to handle text changing from something to something else.

    This is such a case.

    > We aren't gpoing to change that.

    Please forward my request that this problem be fixed. Thanks.

  8. #8
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,376

    Default

    Hello Chris,

    This is the guide you want to use for defining text as unimportant if it is aligned to text or not:
    http://www.scootersoftware.com/suppo..._unimportantv3
    Aaron P Scooter Software

  9. #9
    Join Date
    Apr 2008
    Posts
    2,154

    Default

    Quote Originally Posted by Aaron View Post
    This is the guide you want to use for defining text as unimportant if it is aligned to text or not
    Thanks, but I most certainly do not want to use that since by changing the File Format it interfers with other sessions.

  10. #10
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    2,503

    Default

    I do expect us to add some sort of ad-hoc unimportance parsing, that doesn't interfere with the file format's grammar, but it won't be "Replace 'xxx' with ''". I also can't comment on whether it will be a session or file format setting. The current behavior is powerful, but too complicated for most use, and we are going to revisit how things are divided at some point.
    Zo P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •