CS3/CS4/CS5 Win/Mac: How can I convert a Windows string to mac?

Hi
I have a Windows coded string. I like to convert this string into a Macintosh string. This means several characters are changed, e.g. ä, ö or ü.
Is there a method in the Indesign SDK?
How can I convert a windows string into a macintosh string and back?
Thanks
Hans

I don't think this should work that way. If this string is in resource file, use UTF-8 encoding and make PMString do its job. use kResourceUTF8Encoded in StringTable:
resource StringTable (kSDKDefStringsResourceID + index_enUS)
        k_enUS,                                             // Locale Id
        kResourceUTF8Encoded,                         // Character encoding converter (irp) I made this WinToMac as we have a bias to generate on Win...
              // ----- Menu strings
                kWFPCompanyKey,                         kWFPCompanyValue,
                kWFPAboutMenuKey,                         kWFPPluginName "[US]...",
                kWFPPluginsMenuKey,                    kWFPPluginName "[US]",
                    kWFPDialogMenuItemKey,               "Show dialog[US]",
                kSDKDefAboutThisPlugInMenuKey,               kSDKDefAboutThisPlugInMenuValue_enUS,
                // ----- Command strings
                // ----- Window strings
                // ----- Panel/dialog strings
                    kWFPDialogTitleKey,     kWFPPluginName "[US]",
                    kWFP_Tuna_Key,     "Tuna",
                    kWFP_Salmon_Key,     "Salmon",
                    kWFP_Bonito_Key,     "Bonito",
                    kWFP_Yellowtail_Key, "Yellowtail",
                    kWFP_Currency_Key, "$",
          // ----- Misc strings
                kWFPAboutBoxStringKey,               kWFPPluginName " [US], version " kWFPVersion " by " kWFPAuthor "\n\n" kSDKDefCopyrightStandardValue "\n\n" kSDKDefPartnersStandardValue_enUS,
Message was edited by: Maciej Przepióra

Similar Messages

  • How can i convert video files from my mac to watch them on my iphone?, how can i convert video files to watch them on my iphone?

    how can i convert video files from my mac to watch them on my iphone?, how can i convert video files to watch them on my iphone?

    Turns out the answer to that question changes if you ask it more than 4 times, so ask it again....
    The answer depends on the type of video files you want to convert.  If they are DRM protected commercial videos, no help can be given here.  Google.

  • How can I convert output data (string?) from GPIB-read to an 1D array?

    Hello all,
    I am reading a displayed waveform from my Tektronix Oscilloscope (TDS3032) via the GPIB Read VI. The format of the waveform data is: positive integer data-point representation with the most significant byte transferred first (2 bytes per data point).
    The output data of GPIB-Read looks like a string(?) where the integer numbers and a sign like the euro-currency sign are seperated by spaces e.g. #5200004C3 4 4 4 4 3C3C3........ (C represents the euro-currency sign).
    How can I convert this waveform data into a 1D/2D array of real double floatingpoint numbers (DBL) so I can handle the waveform data for data-analysis?
    It would be very nice if someone know the solution for this.
    t
    hanks

    Hi,
    First of all, I'm assuming you are using LabVIEW.
    The first you need to do is parse the string returned by the instrument. In this case you need to search for the known symbols in the string (like the euro sign) and chop the string to get the numeric strings. Here are some examples on parsing from www.ni.com:
    Keyword Search: parsing
    Once you parse the numeric strings you can use the "String/number conversion VIs" in the String pallette.
    Hope this helps.
    DiegoF.Message Edited by Molly K on 02-18-2005 11:01 PM

  • How can i convert a window media player file into a format playable on ipod

    hey guys can you tell me how can i convert an widdow media player file into a format that can be played on my ipod, i used videora ipod converter but it can't convert the window media player file

    the program you show change wma to mp3, but the mp3 file can't be understanded by the iPod, how can i change a wma file to a format understanded by the Ipod?

  • How can i convert a windows file to pdf

    how do i convert a windows file to pdf

    Fudgeo which Adobe software or service is your inquiry in relation too?

  • CS3/CS4/CS5 Win/Mac: Right mouse click menu

    Hi
    How can I implement a menu on a right mouse click? Interfaces? Samples?
    Is it possible to create an own menu?
    Or append a menu point to an existing menu (right mouse click)?
    Thanks for every help.
    Hans

    Hi
    How can I implement a menu on a right mouse click? Interfaces? Samples?
    Is it possible to create an own menu?
    Or append a menu point to an existing menu (right mouse click)?
    Thanks for every help.
    Hans

  • How can i change the windows structure into mac structure

    Before i had a mac i used my iPod on a windows computer. When i connect my iPod to my mac i see that i can only repair my iPod. I can't update . It sais that only Ipods with a mac structure can be updated.
    So is there a way to change the windows structure to a mac structure?

    You cannot change a Windows iPod into a Mac iPod without restoring it, which erases its contents. To restore it, use the repair button you saw.
    (24236)

  • How can I convert an ASCII string of variable length to a HEX number?

    Hello,
    I read data from the serial port 5 times in a second (while loop) and the number of bytes read varies every time.
    The data comes in as ASCII string, and I can see the HEX representation if I connect a HEX string indicator, but I need to permanently convert data to a HEX number. 
    How can that be done?

    Like This.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • I am receiving iMessages from my iPhone on my mac. how can i stop getting them on my mac

    I just got a new mac and now my iMessages from my phone are showing up on it. I want to stay signed into my apple id but don't want to receive these imessages

    Follow the instructions under the heading "How to unlink a phone number" on this page.

  • How can i get garageband for my older mac, how can i get garageband for my older mac

    Is there anywhere I can download Garageband 6?
    I have a 32 bit system and can't upgrade to where I need to be to get garageband 10 to run
    Thanks,
    Joe

    jocrow@upenn wrote:
    Is there anywhere I can download Garageband 6?
    no, you'd need to purchase a boxed copy from someplace like eBay, or Amazon (they sell iLife '11 for $42)

  • How can I convert IF_IXML_DOCUMENT to STRING?

    Hi guys,
    is it possible to  convert an XML document (type IF_IXML_DOCUMENT ) to string.
    And how to do it?
    Thanks in advace!
    Regards,
    Liying

    Hi Wang,
    You can use these function modules
    TEXT_CONVERT_XML_TO_SAP or
    SDIXML_DOM_TO_XML Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
    or
    SMUM_XML_PARSE (Parse XML docment into a table structure)
    You can also refer to these:
    SMUM_XML_CREATE (Create XML document from internal table)
    SMUM_XML_CREATE_X (Create XSTRING xml doc)
    Check this code, it converts an XML data into a string internal table.
    REPORT Z_XML_TO_TABLE.
    TYPE-POOLS: ixml.
    TYPES: BEGIN OF t_xml_line,
    data(256) TYPE x,
    END OF t_xml_line.
    DATA: l_ixml TYPE REF TO if_ixml,
    l_streamfactory TYPE REF TO if_ixml_stream_factory,
    l_parser TYPE REF TO if_ixml_parser,
    l_istream TYPE REF TO if_ixml_istream,
    l_document TYPE REF TO if_ixml_document,
    l_node TYPE REF TO if_ixml_node,
    l_xmldata TYPE string.
    DATA: l_elem TYPE REF TO if_ixml_element,
    l_root_node TYPE REF TO if_ixml_node,
    l_next_node TYPE REF TO if_ixml_node,
    l_name TYPE string,
    l_iterator TYPE REF TO if_ixml_node_iterator.
    DATA: l_xml_table TYPE TABLE OF t_xml_line,
    l_xml_line TYPE t_xml_line,
    l_xml_table_size TYPE i.
    DATA: l_filename TYPE string.
    PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:\temp\orders_dtd.xml'.
    Validation of XML file: Only DTD included in xml document is supported
    PARAMETERS: pa_val TYPE char1 AS CHECKBOX.
    START-OF-SELECTION.
    Creating the main iXML factory
    l_ixml = cl_ixml=>create( ).
    Creating a stream factory
    l_streamfactory = l_ixml->create_stream_factory( ).
    PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
    wrap the table containing the file into a stream
    l_istream = l_streamfactory->create_istream_itable( table =
    l_xml_table
    size =
    l_xml_table_size ).
    Creating a document
    l_document = l_ixml->create_document( ).
    Create a Parser
    l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
    istream = l_istream
    document = l_document ).
    Validate a document
    IF pa_val EQ 'X'.
    l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
    ENDIF.
    Parse the stream
    IF l_parser->parse( ) NE 0.
    IF l_parser->num_errors( ) NE 0.
    DATA: parseerror TYPE REF TO if_ixml_parse_error,
    str TYPE string,
    i TYPE i,
    count TYPE i,
    index TYPE i.
    count = l_parser->num_errors( ).
    WRITE: count, ' parse errors have occured:'.
    index = 0.
    WHILE index < count.
    parseerror = l_parser->get_error( index = index ).
    i = parseerror->get_line( ).
    WRITE: 'line: ', i.
    i = parseerror->get_column( ).
    WRITE: 'column: ', i.
    str = parseerror->get_reason( ).
    WRITE: str.
    index = index + 1.
    ENDWHILE.
    ENDIF.
    ENDIF.
    Process the document
    IF l_parser->is_dom_generating( ) EQ 'X'.
    PERFORM process_dom USING l_document.
    ENDIF.
    *& Form get_xml_table
    FORM get_xml_table CHANGING l_xml_table_size TYPE i
    l_xml_table TYPE STANDARD TABLE.
    Local variable declaration
    DATA: l_len TYPE i,
    l_len2 TYPE i,
    l_tab TYPE tsfixml,
    l_content TYPE string,
    l_str1 TYPE string,
    c_conv TYPE REF TO cl_abap_conv_in_ce,
    l_itab TYPE TABLE OF string.
    l_filename = pa_file.
    upload a file from the client's workstation
    CALL METHOD cl_gui_frontend_services=>gui_upload
    EXPORTING
    filename = l_filename
    filetype = 'BIN'
    IMPORTING
    filelength = l_xml_table_size
    CHANGING
    data_tab = l_xml_table
    EXCEPTIONS
    OTHERS = 19.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Writing the XML document to the screen
    CLEAR l_str1.
    LOOP AT l_xml_table INTO l_xml_line.
    c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
    replacement = space ).
    c_conv->read( IMPORTING data = l_content len = l_len ).
    CONCATENATE l_str1 l_content INTO l_str1.
    ENDLOOP.
    l_str1 = l_str1+0(l_xml_table_size).
    SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
    WRITE: /.
    WRITE: /' XML File'.
    WRITE: /.
    LOOP AT l_itab INTO l_str1.
    REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
    IN
    l_str1 WITH space.
    WRITE: / l_str1.
    ENDLOOP.
    WRITE: /.
    ENDFORM. "get_xml_table
    *& Form process_dom
    FORM process_dom USING document TYPE REF TO if_ixml_document.
    DATA: node TYPE REF TO if_ixml_node,
    iterator TYPE REF TO if_ixml_node_iterator,
    nodemap TYPE REF TO if_ixml_named_node_map,
    attr TYPE REF TO if_ixml_node,
    name TYPE string,
    prefix TYPE string,
    value TYPE string,
    indent TYPE i,
    count TYPE i,
    index TYPE i.
    node ?= document.
    CHECK NOT node IS INITIAL.
    ULINE.
    WRITE: /.
    WRITE: /' DOM-TREE'.
    WRITE: /.
    IF node IS INITIAL. EXIT. ENDIF.
    create a node iterator
    iterator = node->create_iterator( ).
    get current node
    node = iterator->get_next( ).
    loop over all nodes
    WHILE NOT node IS INITIAL.
    indent = node->get_height( ) * 2.
    indent = indent + 20.
    CASE node->get_type( ).
    WHEN if_ixml_node=>co_node_element.
    element node
    name = node->get_name( ).
    nodemap = node->get_attributes( ).
    WRITE: / 'ELEMENT :'.
    WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
    IF NOT nodemap IS INITIAL.
    attributes
    count = nodemap->get_length( ).
    DO count TIMES.
    index = sy-index - 1.
    attr = nodemap->get_item( index ).
    name = attr->get_name( ).
    prefix = attr->get_namespace_prefix( ).
    value = attr->get_value( ).
    WRITE: / 'ATTRIBUTE:'.
    WRITE: AT indent name COLOR COL_HEADING INVERSE, '=',
    value COLOR COL_TOTAL INVERSE.
    ENDDO.
    ENDIF.
    WHEN if_ixml_node=>co_node_text OR
    if_ixml_node=>co_node_cdata_section.
    text node
    value = node->get_value( ).
    WRITE: / 'VALUE :'.
    WRITE: AT indent value COLOR COL_GROUP INVERSE.
    ENDCASE.
    advance to next node
    node = iterator->get_next( ).
    ENDWHILE.
    ENDFORM. "process_dom
    Thanks,
    Susmitha

  • How can I Convert a numeric string to a formatted string?

    I have a string value returned from a background tool that will range from 0 to possibly terabytes as a full number.  I want to format that number to use commas and to reduce the character count using an appropriate size modifier (KiB, MiB, GiB, etc).  I've tried converting the string number to a Double value using Double.parseDouble() and then performing the math based on the size of the value with this code:
    Double dblConversionSize;
    String stCinvertedSize;
    dblConversionSize = Double.parseDouble(theValue);
    if (dblConversionSize > (1024 * 1024 * 1024))
         stConvertedSize = String.format("%,.000d", dblConversionSize / 1024 / 1024 / 1024) + " TiB";
    I've also tried using
         String.valueOf(dblConversionSize / 1024 / 1024 / 1024) + " TiB";
    However, the formatting is failing and I'm either getting a format exception or the result is displayed as a number with no decimal component.
    Anyone have a recipe for this?
    Thanks,
    Tim

    TOLIS Tim wrote:
    Thanks, but the reason for using Double is that the division math can leave me with values like 2.341 GiB.  I don't want to drop the values (or round) on the right side of the decimal point.
    Then you may look for DigDecimal which avoids digitization errors.
    NumberFormat will handle all subclasses of Number. You might need another specialization. Just look at the API which one is suitable.
    bye
    TPD

  • How can I convert my current Photoshop CS5 license from PC to mac?

    I currently have a valid license to Adobe Photoshop CS5 on the Windows.  I've switched over to using a Apple Macbook running OSX Mavericks.  How can I convert my current Photoshop CS5 license from PC to mac?

    You can't. The perpetual licenses are OS specific.

  • How can I transfer my DW licence from mac to PC?

    Hi! My name is Kico Cowan, and I have 2 Licences for Dreamweaver  CS3 and CS4 for Mac operating system, and I no longer have a mac Computer,
    So my Question is:
    How can I transfer my DW Licence from  Mac to a PC licence ?

    According to Adobe, you can only perform a "platform swap" on a current version of the program. Looks like you're stuck unless you upgrade to the subscription based version...
    Order product | Platform, language swap
    Since you own CS3 & CS4, you can get 40% off your first year's subscription rate:
    Creative Cloud pricing and membership plans | Adobe Creative Cloud

  • I am switching to Apple macbook pro from Windows laptop.  Is Apple compatible with Microsoft Office?  How can I transport from Windows to Mac?  What I have saved on external hardrives, will I be able to open it on Mac?

    I am switching to Apple macbook pro from Windows laptop.  Is Apple compatible with Microsoft Office?  How can I transport from Windows to Mac?  What I have saved on external hardrives, will I be able to open it on Mac?

    Is Apple compatible with Microsoft Office?
    Any computer is compatible as long as it can read and write Office files. But for perfect (or at least near perfect) compatibility, you would want to purchase Office 2011 for Mac.
    How can I transport from Windows to Mac?
    You can't directly transport any installation of Windows. All PC's come with a machine specific version of Windows intended for that PC. They don't have all of the hardware drivers the retail disks cover.
    If you want Windows on your Mac, you would first purchase a full version copy (NOT an upgrade disk) of Windows 7 or 8. Those are the only supported versions on newer Macs. You install it through the supplied Boot Camp utility that comes with the Mac to create a new partition for Windows, and then install the retail copy of Windows you purchased.
    The reason only these versions of Windows are supported is the same basic reason as a machine specific version of Windows for a PC. Apple only includes the necessary Mac hardware drivers for Win 7 or 8 on new Macs.
    Once Windows is installed, you could then install the version of Office for Windows you already own. The nuisance of a Boot Camp partition is that you have to physically boot to either Windows or OS X, so you can only use the apps of the OS you're in at the time. To use both at once, you'd have to use virtual machine software (Parallels, VMware, VirtualBox) and then install Windows within that. Then you'd be able to run Windows inside of OS X and have access to both at the same time.

Maybe you are looking for

  • MSI GE70 Laptop will start but won't boot

    Hello I've had my GE70 for almost two and a half years now and it has recently started to show a few problems. A couple weeks ago the laptop started to freeze whenever I moved it too abruptly, particularly when holding/pressing the case near where th

  • How to create an array of functions

    normally I use repository.getFunctionTemplate(functionName); to get a function object. Is there a way to get an array of function objects for a function name. I am trying to execute multiple functions in the same connection to reduce calls for loggin

  • If database field increases in size, how to change report to display this increase?

    Hello Everyone,        I'm working with Oracle Reports 10g and have a report that was already created.  I need to increase the size of a field from 50 to 200 in width to accomadate a database change.  When i click on the field and choose properties,

  • No History [Useless Radio Button]

    Windows 7 -Skype Version 7.2.59.103 Tools/Options/Privacy Why is 'no history' even placed as an option? Been skyping for a few years and even NOW it's useless. I have to clear my history every time I log on. WHY????????????????????? Attachments: No H

  • The other optiarc bc 5500s problem

    ok i see that the people with player problems fixed their issue but many others have this issue the drive works fine except for bd rom playback when you put a bd disk in it will go ba-dump 3 to 5 times and then give up doesnot matter what program you