How to fix faux subscripts/superscripts made with baseline shifts

Hello all.
There is a script on the forums used to convert locally formatted styles to character styles – Preserve Local Formatting script and CS4
It is a brilliant script, but as I have unexpectedly found out (and would have found out if I read the post in more detail) is that any "faked" sub/superscripts created with baseline shifts won't work. To quote the other thread:
The script searches for attributes such as "superscript", "subscript", "small capitals". If small caps are faked in the document with capitals in a smaller font, the script will not find them. If superscript or subscript are faked in the document with a smaller font size and some baseline shift, the script will not find them.
Initially I didn't think this would ever be a problem... I thought "who the hell would make a subscript or superscript like that? wouldn't they just click the subscript or superscript buttons?"... unfortunately, no!
I thought a solution would be to make a GREP that could be added to a findchangebylist script that ships with InDesign. First thing to do would be to create a GREP to look for any positive baseline shift and change it to superscript; and a GREP to search for any negative baseline shift and change it to a subscript. Sounds simple... until I tried to implement it, as the dialog won't take a + or - by itself... it has to be a proper value.
Has anyone else faced this issue, and if so, what was the solution/outcome?
Colin

@Rob: Perhaps I should have given some background for what I was trying to do.
I have a client who is importing dozens of pages of simple chemical equations from microsoft word and it is in the word file that the baseline shift method of creating subs/supers was done. What my client wanted to do was import the text without losing important appearance details such as this, and bolds/italics, but then be able to assign his own paragraph styles without faux sub/supers returning to a regular style. My procedure to the client was to:
Import said word file into indesign file that contains appropriate paragraph/character styles to be applied;
Run the default "findchangebylist.jsx" to remove any double spaces, tabs etc.
Run a modification of Jongware's "preptext" script that will apply to all text frames rather than the current text frame.
This was working well until we both noticed H2SO4 did not have the numbers as subs, even though the word file clearly did. Closer inspection on the word file showed that the subscript button was not toggled, but the baseline shift had been, hence why the preptext script had missed a key piece of formatting.
With the preptext script, items that had subscript and superscript locally applied to the text would now be assigned "Sub" and "Super" character styles, and from there I agree - the more discerning typesetter could to into the character style and make the apperance of the said subs/supers more appealing. I believe a way of using the opentype subs/supers would be to replace the words SUBSCRIPT and SUPERSCRIPT in the said script to be OT_SUBSCRIPT or OT_SUPERSCRIPT respectively, provided an opentype font was being used for the formatting.
So in this instance, this script serves a rather specific purpose of fixing this particular document, rather than being applicable on a wider scale.
It is also important for anyone working with epubs to note that subs/supers made with baseline shifts (whether applied as character styles or not) will not appear in the resulting epub. Subs/supers made with the subscript/superscript buttons (again, whether applied as a character style or not) will appear in a resulting epub, so this is another consideration (I don't know if this is true if a customised CSS has been applied, but for straight export to epub from InDesign, it appears to be the case). This can be said for other forms of faux styles, such as skewing type to make a faux italic.
@Peter: I agree, there isn't a perfect solution, but for the situation that I have, the script does what it is intended to do.
It should be noted for readers of this post that this script is specifically purpose-driven, and that I would not use this script if a document contained:
fractions made using baseline shifts;
character or paragraph formatting that used baseline shifts;

Similar Messages

  • FaceTime bright highlights are overexposed.  How to fix this on my iMac with Lion.?

    FaceTime bright highlights are blown out, overexposed.  How to fix this on my iMac with Lion? 

    If restarting doesn't fix, use the relevant suggestions from Apple's How to Troubleshoot iSight.  If nothing else there works, the repair by an Apple-Authorized Service Provider suggested there and by spudnuty will get it sorted.
    (Over time, Apple has changed the built-in camera's name on newer Macs from "iSight" to "FaceTime" and then to "FaceTime HD."  Regardless of the name of your Mac's built-in camera, the same info and troubleshooting applies.)
    Message was edited by: EZ Jim
    Mac OSX 10.10

  • How can I download songs i made with my ipod on my pc ?

    How can I download songs i made with my ipod on my pc, i tried to share them with iTunes but it never worked i don't know where the file goes and iTunes doesn't seem to have the file...

    Many thanks Illaass for your help. Everyhing was perfect till I selected "iMovie" in the list of Apps on the left and NOTHING (no file) appeared in the box on the right.
    I can watch the whole movie in my iPod (from inside the application) perfectly, and in fact is the only file I made with that app.
    I already have it in my "Camera Roll", too. And I can watch it perfectly from there, too. 
    Another thing that perhaps you must know is that I tried to "export" it from the app, and a pop up said "Unable to Export - This project contains video clips which have been deleted from your photo library."
    Pleeease help me! I need to get that video out of my iPod!  

  • How can i make a soft return with pages shift enter does not work!

    how can i make a soft return with pages shift plus enter does not work!!

    On full keyboards with a numeric keypad, the key above the right shift is "return" & the one on the numeric section is "enter." On a Mac (or Apple IIgs ) they do have separate functions. On the "mini" keyboards, both names are on the same key, but "enter" is written in smaller letters. I'll have to check to see how that works on another Mac later today.

  • How can I avoid losing purchases made with an old Apple ID when I authorize my MacBook Pro under my current Apple ID?

    I am very confused!!  When I first used iTunes, I did not own any Apple products.  When I purchased my MacBook Pro and a Mobile Me subscription a few years ago, my email address @me.com became my new Apple ID.  I subsequently purchased an iPhone 3 and eventually an iPhone 4.  Apparently over this time, I have used both Apple IDs at various times.  Sometimes when I upgrade apps, the old ID will already be filled in and other times the new one will be instead.  I always use whichever one is there with the appropriate password.  This was probably a mistake.  I just realized that my MBPro is authorized under the original Apple ID and not the current one.  I tried to authorize it under the current Apple ID, but couldn't, so I was going to deauthorize it from the old one, but got a message about losing any purchases made with the original Apple ID.  I don't want that to happen.  Synching my iPhone in iTunes with my computer has been much more confusing since I got my newer iPhone. However, I don't remember anything about the process I went through to associate it with my iTunes account.  Any helpful suggestions are appreciated.

    Log into the store using the old Apple ID to re-download them, however, you can not switch them into your current Apple ID except by re-purchasing. You can contact Apple support and see if they are able to help you.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • How to Delete the Photo's in iPad1 , how to fix the simcard for iPad with 3G....

    hello..
                  How i can delete the photos which are uploaded in ipad .
    How to fix the sim card in the 3G iPad, where i can get the tool which to open the simcard slot.

    How i can delete the photos which are uploaded in ipad .
    If they are photos you synced from iTunes, they are removed in the same manner... unsync them, i.e. deselct them from syncing.
    How to fix the sim card in the 3G iPad, where i can get the tool which to open the simcard slot.
    The tool should have come with the iPad...

  • How to export a short  film made with still images without loosing quality?

    Hi,
    I have been trying everything to make a short film, which is made with still images, to look decent once exported however it is a real challenge. Here are the steps I have undertaken:
    1- I prepare the photographs and give them the aspect ration of 720p and whatever height as I try not to crop them too much at 300dpi. They look great in photoshop or capture one. I then save them as.tiff. All the images are RGB.
    2- I start a new project in premiere pro cs4 and make it DV Pal 25fps.
    3-I import the images and place them on the timeline. If they are a bit too big I rescale them. The images seem to look ok on the timeline although I seem to have lost the deepness of the colours.
    4-I render the work area
    5-I export it as quicktime, dv pal, quality 100.
    My dilemna is that although exporting with quicktime, dv pal, quality 100 seems to give me the best quality compared to using quicktime animation, mpeg2, cinemak, avi..., the images are still not as sharp as in Photoshop and the colours look a lot paler and washed out. Also, when looking close to the screens you can see tiny squares on the images although from distance it's not too bad. When I view it from the exported file using Nero it's not too bad although definitely not perfect, as soon as I try to make a DVD and import it in Adobe Encore CS4 or send it by Dynamic Link, the quality looks horrible with images that look soft if not blurred and completely washed out.
    I have now tried about t bu15 versions to see what 's the best I still have not reached the optimum quality and since these will be shown on big tvs or projected onto screens I need to nail it.
    Would anybody have any advice please please please?
    Many Thanks

    My overall advice is to do that kind of work in an application that is designed for that.  Give Photodex Proshow Producer trial a crack at it.  I do a lot of work with stills, and that IMO PSP is the best approach.  If you are intermixing the odd still, Pr may get you by.  If you plan on doing a lot of that, try proshow, where the workflow and extensive features are designed for making high quality videos from stills that can be output to a wide number of formats and destinations, including color management with many of them( including avi).  And, no need to resize.  I know this won't solve your present problem.
    Obviously, your attempt in Pr has not worked out as you had hoped. Maybe a bit more info would help. How are you rescaling them in Pr? That might well account for some quality loss. What is the original format and size of the images? What color management are you using in PS? Are you using any color correction or effects in Pr? Is your project interlaced or progressive?
    From your description,  you are not even getting the quality you should be getting from Pr IMO, though as Jim says, it is video and it will never look as pristine as it does in PS, but it still seems to me that something you are doing has degraded the work more than normally would be expected.

  • How to migrate sites and blogs made with iWeb 1.1.2 into MobileMe?

    How to republish or migrate sites and blogs made with iWeb 1.1.2 into MobileMe?
    I can not find instructions for that, and when trying to publish into .Mac, I consistently get an error message. The sites would look better as they are, but ...

    tortuga wrote:
    How to republish or migrate sites and blogs made with iWeb 1.1.2 into MobileMe?
    If you're referring to last year's transition from .Mac to MobileMe, your iWeb websites are still available at the same URLs and have also been given a new URL at (www.me.com). For example, (web.mac.com/emily_parker/) will work as will (web.me.com/emily_parker)
    tortuga wrote:
    I can not find instructions for that...
    I don't think there's anything special you need to do, but anyway, this Apple doc may be of interest:
    _dotMac to MobileMe transition FAQ_
    tortuga wrote:
    ...and when trying to publish into .Mac, I consistently get an error message.
    What's the exact text of the error msg? This Apple doc may help:
    MobileMe: Troubleshooting iWeb publishing issues
    Also, MobileMe live chat support is now 24/7 — see this announcement.
    By the way, your Public Profile indicates you're running Mac OS X (10.5.4) — if that's true, you should upgrade to 10.5.8 via  menu > Software Update...

  • HT202879 How can I open a file made with old version of Pages (before 09)?

    I need to open a file made with old version of Pages (before 09).  How can I do this?  I only have iworks Pages free with Mac Book Pro.

    You need either Pages '09 or the original Pages '08? programs.
    With Pages '09 you simply open it and it accurate converts it to Pages '09. Pages 5 will open the Pages '09 version but may alter/damage the file.
    With Pages '08 you Export it to Word .doc/.docx with mixed results, then open that in Pages 5 which may alter/damage the file.
    Peter

  • How to fix an error has occurred with your microphone/speaker.(104) when using line application

    Haloo,
    I am an iphone 5 user, while using the line application for calling with my girlfriend,
    suddenly this error happened
    an error has occurred with your microphone/speaker.(104)
    anyone can help me fix this problem?
    thank you..

    So I tried the trial version but my serial number didn't work I guess because it's for a CS5.5 Web Premium product. I also tried uninstalling my current version of FB4 Standard, uninstalling CS5.5 and starting from scratch without any copies of FlashBuilder in my Applications folder and that didn't work, same error log message. I ended up reinstalling my original copy of FB4 Standard so I could continue working.
    The odd thing is when I went to my MacBook Pro and uninstalled the copy of FB4 Standard I have on there and installed the CS5.5 FlashBuilder 4.5 Premium it works and started up fine. So I'm guessing there's something specific about my iMac setup that's preventing launch.
    I was looking at my FB installation details, don't know if this matters but I'm running the standalone version:
    Adobe Flash Builder Localized Standalone Feature 4.0.1.277662 com.adobe.flexbuilder.feature.standalone.nl1.feature.group
    eclipse.application=com.adobe.flexbuilder.standalone.FlexBuilderApplication
    Unfortunately it's the weekend (holiday in US too). I like the weekend for trying to get these things setup but I'm on my own and feel I'm out of luck until the work week starts.
    If anyone from Adobe is reading this with a beer in one hand and hotdog in the other (or burger or veggie burger or bbq chicken leg) on a hot memorial day and have an idea on how to fix this I'd really appreciate your advice. Thanks!

  • How to open a edxcel file made with edxcel version before windows 1997

    i have recently bought a imac and i am currently transfering my spreadsheets that i had on my old windows computor to my imac and i can not open them beacuse the where made with a edxcel version before 97 and i need the information that they contain beacuse it referse to my buissness finances

    Barry Carver wrote:
    i have recently bought an iMac and i am currently transfering my spreadsheets that i had on my old windows computor to my imac and i can not open them because they were made with a excel version before 97 and i need the information that they contain because it refers to my business finances
    Hi,
    Welcome to Apple discussions and the numbers '09 forum.
    You might check dataviz.com, suppliers of MacLink Deluxe. They claim to support MS Excel 2.x, 3.0, 4.0, 5.0, 95, 97, 2000, XP 2002 files on the Windows side. On the Mac side, spreadsheet support includes Excel 2004 (.xls) and (listed as database support rather than spreadsheet) CSV files. Numbers '09 can, I think, open both those formats.
    The other route is to find someone with a more recent version of Excel that can open you files and save them in a newer Excel format.
    Regards,
    Barry

  • How to fix corrupted backup then proceed with restore? Or extract app databases from corrupted backup?

    Deeply let down by Backup restore :-(
    iPhone 3GS with iOS5.1 (the latest) started to behave abnormally. Made a full restore of iOS then tried to restore from backup only to discover message that my backup is corrupt or not compatible. Contacts were restored more or less OK but all applications data including personal financials (PocketMoney records) were lost.
    Tried 2 times to run restore from backup but without success :-( Is there any chance to fix so-called corrupted backup file or at least to retrieve my app databases out of there?
    Any help will be greatly appreciated. Thanks.

    Not that I've heard of.  You can extract some of your data from a backup using iPhone Backup Extractor, but I'm not sure that includes app data (you could try contacting them to find out).  And even if you could, I don't know how you would sync it back to your phone.

  • How can I sign an app made with PhoneGap Build?

    HI,
    I have set up the PhoneGap Build service and created an account so I can make an app and upload it to my mobile phone.
    Now I have reached the point where I would like to sign it and upload it to Google Play.
    I have a developer account and I have filled in all data, made screenshots and icons and description for the app etc.
    When I try to upload it to Google play it says "Upload failed..." and that I need to disable debugging.
    I have tried to find information about how to do this and I have installed the SDK packet and even successfully set up the path in the Settings for PhoneGap Build without any protests..
    Now what?
    I have read trhe documentation on how to make a private key with keytool using the cmd in windows an the key has been uploaded to my account on the phonegap build site.
    Now according to the doc in phonegap build this key should be used signing the app that I made in dreamweaver. So I recreated the app in Dreamweaver and downloaded it and then tried to upload it on Google Play.
    Still the same problem that the app is in debug mode. This means that phone gap build is not doing it's job as it should or maybe that my key is not working.
    So my question first is, how can I see if the key is properly generated with keytool?
    My next step is to manually sign the app.apk file with the jarsigner tool so I tried to do this accordingly to the sample in the android documentation.
    This a screenshot of my attempt and the error-message in the command line:
    It feels like I have done everything by the book but still my app is not signed and not valid to upload to Google Play for public download.
    Please give me some assistance in how to create this last little but so hard step.
    Thanks!
    Micke
    Message was edited by: MickeBergman

    I got it solved...
    If anyone else has done the same mistake as I did then have a look here.
    You just have to create the key with keytool using the command line (cmd.exe)
    Here is the guide how to do it (scroll down to "1. Obtain a suitable private key")
    Use the example, it works fine.
    Then upload it to your PhoneGap Build account by logging in to build.phonegap.com
    Then under your account settings upload the yourkey.keystore file and unlock it.
    Then under Apps click your uploaded App title to come into the details of the app.
    Then (and this is what I missed and therefore didn't get it signed and released) choose the key you uploaded from the fold down menu at the right hanbd of the android logo
    Then click Rebuild and when it's done rebuilding you simply download it and it will have a YourApp-release added to the file name and you're set!
    Pheeeww this was a horrifying experience and yet so simple solution... strange noone else has experienced this before me.
    At the end I have to really salute Dreamweaver who has made such a great tool to easily make your own apps.

  • How I fixed my wifi on iphone with clearwire

    After so many tries and hours of pain........!
    I first got on apple support and had my internet redone by support help. Then went to the genius bar and made sure my iphone worked with wifi-it did.
    Then back to the drawing board. Finally went to the about mac on my imac and found out my clearwire had a fixed dns.
    in system profile, I looked at the network tab and found my dns. Server address. Back to my iphone.
    So I put it in and went to the settings and instead of dhcp, I used boot. Works great, only shows the dns for clearwire. Works to fast to be edge, as edge is the only thing that shows-but it works fast!
    Tried weather, stocks works great. BUT not itunes?
    Better than nothing. Jon

    You say fixed DNS.
    Have you tried running iPhone in regular WiFi mode, and changing the DNS addresses manually? Then seeing if all the features plus iTunes WiFi Store works?
    Might be a possibility a port is being blocked that won't allow iTunes WiFi Store to access the internet correctly.
    Can you even access it on a home computer?

  • How can i put my book, made with ibooksauthor for mac, on my iPad for free?

    I made a book with ibooksauthor for mac, the new app from apple to make your own ibook. But how can i get that book on my iPad, without any account you have to pay for (in the video you find on apple.com, they say it's possible)... and I want it just for my own, just on my own ipad, that's all
    sorry for my bad english
    sportie96
    thx for your help!!!

    In IBooks Author choose Share:Export... iBook. Drag the YourBook.ibooks file onto iTunes, maybe directly into the Books panel. Sync your iPad with the Mac, selecting YourBook in iTunes.

Maybe you are looking for