Jump to content

Sellis

Registered Users - Approved
  • Posts

    8
  • Joined

Posts posted by Sellis

  1. Hello all I got some help with this 6 months or so ago, and it seems that something happened and it's not working anymore.

    Here is what I need to achieve.

    We are doing versioned cards for a school for the blind. The front is sighted text, and the back get's embossed with braille for dual use.

     

    I got help getting a code that would allow the user to enter in their phone number, and it would convert it to US English 2 braille. (IE the numbers become letters.) it was working fine for a while, now it's no longer working. A note we do not use what get's generated for anything more than a proof, another vendor does the braille embossing.

     

    Here is the variable, if they want the same phone in braille that is in phone 1 we allow them leave the braille phone line blank.

     

    Here is the code I have been using.

    This job resides on an EFI/Digital Store front site, and is allowed for one off use only. Any ides why I'm not getting the result i'm looking for?

     

    Var1 = Field("Phone1")

    Var2 = Field("Braille Phone")

     

    if (Field("Braille Phone") =="")

     

    return formatBraille(Field("Phone1")); // #617-555-1234

     

    else

     

    return formatBraille(Field("Braille Phone")); //#+617-555-1234

     

    ////

    function formatBraille(number) {

    number = number

    .split('')

    .map(function(s) { return /\d/.test(s) ? Chr(96 + Int(s)) : s; })

    .join('')

    .replace(/[^a-j]/gi, '')

    .match(/^(.{3})?(.{3})(.{4})$/);

    if (!number) return '';

    number.shift();

    return '#' + number.filter(Boolean).join('-');

    }

     

     

    Thank you

    Sean

  2. Here is the problem I have. My client needs to have a custom overflow rule.

    If their text is longer than the specified title one area it needs to break to title two line, but i needs to indent 3 spaces ti indicate it's a continuation of the title.

    If this happens we need to suppress title tile and use the title one.

    If it's not longer we want both title 1 and title 2 on the piece.

     

    I now have a yes/no option to have the user select is the title is too long, but they are not doing it and it's had a few cards be wrong.

     

    Any help with this would be great thank you!

     

    Sean

  3. So I have an interesting issue.

     

    My client needs to have text formatted like a phone number.

     

    A little background this client is using a braille translating service to convert a phone number to Grade 2 braille.

     

    so 617-555-1234 is represented like this. #fag-eee-abcd

     

    Here is what I need help doing. The text must always have (#) in the front to note that this is a number, and we must be bale to have the rule format the text like a number #fag-eee-abcd.

     

    We want to set the programming to be bale to accommodate the text entry of #fag-eee-abcd or #fageeeabcd.

     

    I tried modifying the format phone rule, but with little success, any one have any suggestions for this?

     

    Thank you

    Sean

×
×
  • Create New...