Upper to lower case in "false" list

http://indesignsecrets.com/convert-text-to-lowercase-with-grep-utility.php
Is a thread I found. It converts the first char in a “bullet list” para style to lower case.
Works great, but often we have lists for which, for several reasons, we cannot use the automatic “list” function (copy paste issues with other programs etc). The first char is the — (alt +0151) followed by a space (no tab) or the • (alt+0149) char.
I cannot figure it out with a grep function, because there’s no mention of “lower case” possibility.
Any suggestions?

I was able to modify Peter Kahrel's script fairly easily to change the third character instead of the first, which I think would do what you want.
//Change THIRD character to lower case
//Peter Kahrel wrote the original of this.
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.appliedParagraphStyle = "List";
// Third letter in paragraph to lower case:
app.findGrepPreferences.findWhat = "^.{3}";
found = app.activeDocument.findGrep();
for (i = 0; i < found.length; i++)
  found[i].characters[2].changecase (ChangecaseMode.lowercase);
I changed
app.findGrepPreferences.findWhat = "^."; to
app.findGrepPreferences.findWhat = "^.{3}"; so it picks up the first three characters in the paragraph instead of only one
and
found[i].characters[0].changecase (ChangecaseMode.lowercase); to
found[i].characters[2].changecase (ChangecaseMode.lowercase); so it changes the third character instead of the first.
The script still depends on the text aving a named applied style (in this case I left it at "List") so you may need to edit more to change the style name to match your situation.
And if you wanted, I think you could probably change app.findGrepPreferences.findWhat = "^."; to app.findGrepPreferences.findWhat = "^.+"; to find the entire paragraph, then change the index in the array to match any character position of your choice, but I don't think that has much purpose. One of the scripters could probably jazz this up with an interface that asks which character you want to change.

Similar Messages

  • Saved passwords although upper and lower case when displayed in the list of saved passwords transfer to the appropriate location as lower case only.

    running windows 7 64bit pro
    Geico website is the only place where we have upper and lower case user name
    current version firefox 6.0.2

    Make sure that you haven't saved Uppercase and Lowercase versions of that name and password.
    Remove saved Password(s):
    * Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    See also Password Manager:
    *http://kb.mozillazine.org/Password_Manager

  • Upper and lower case Username creates Contact, Calendar, Note acces problems

    Dear All
    Maybe someone has a solution for this or discovered the same case. Our server infrastructer is using Username with upper and lower case letters e.g "Galler".
    Pushing these access data (Username, server adress etc.) for E-Mail, Contact, Calendar and Notes via the profile manager creates problems for the Contact, Calendar and Notes access, because profiles is rechanging the username in all lower case letters "galler". For the E-Mail it is not the case.
    Every help would be very appreciated. Maybe some solution in using username alias with only lower case letters, but I don't no how to establish.
    Thanks in advance for your help.

    Perre wrote:I'm used to being able to pick one or a couple of songs and then adding it a specified playlist. Is this impossible in sonata?
    It's clearly not impossible, just different than you expect. Create your playlist as you want it to appear in the Current tab (meaning don't dump every single song from your library in there, just the ones you want) and then save the playlist.
    Perre wrote:And if I try to play the m3u file created (the one with every song listed) through freevo I get a message that the directory is empty. What am I doing wrong??
    Look at save_absolute_paths_in_playlists in your mpd.conf.

  • UPPER and lower case file extensions for Photo Shop Elements using Windows 7

    How do I persuade WIndows 7 to show both UPPER and lower case file extensions, which is a very useful facility offered by my ancient, 2002, version of Photoshop Elements? When processing large volumes (100 plus) photos it is very useful to be able to spot those that have been processed among those awaiting my gentle touch. The JPEG file extension produced by my camera is UPPER case so by using "Save as" with lower case the modified photos are immediately spotted. This worked fine on Windows XP and the same programme has loaded and works well on my new laptop which came loaded with Windows 7 EXCEPT that it persists in using UPPER case all the time, irrespective of the preference settings in PSE. HELP!
    Camperman1

    In PSE there is a facility "File > process multiple files".
    Using this facility you can actually process multiple files at one go and you can easily rename images.
    Addi

  • Is Central Search Searchable Via Upper and Lower Case Letters

    Good evening,
    Does anyone know if Central Search is searchable using both upper and lower case letters?  We have the functionality enabled and can only bring back search results when we use upper case letters.  When we search on the same marketing object using lower case letters, we do not get any results. For example, TK2292 brings back marketing object TK0002292 but tk2292 does not bring back any results.  Advanced Search appears to be able to handle both search scenarios.  Any guidance would be greatly appreciated. 
    Regards,
    Gregg

    Hello,
    Did you put a breakpoint in the query method to check what you receive in the field 'marketing object' when you start from the central search of the advanced search?
    Is it different?
    Regards,
    Fred

  • Upper to Lower Case Scripts

    Hi. Does anyone have Upper to Lower Case scripts for iTunes? In other words translates Song Titles to Lower Case.
    Thanks in Advance!!

    Go to http://dougscripts.com/itunes/index.php - there are loads of scripts for most iTunes needs including what you are looking for.
    MJ

  • Upper- and lower case filenames

    I have two Mac OS Extended (journaled) drives with one on my laptop and one on my desktop. I sometimes get an error that reads:
    "You can't copy some of these items because their names are the same as other items on the destination volume, and that volume does not distinguish between upper and lower case letters in filenames. Do you want to skip these items and continue copying other items?"
    Recently this happened when trying to force move (using the Command Key) data from my iDisk to my desktop hard drive.
    Does anyone know what is going on here?
    Is it advisable to first copy data to the desktop on the volume that you are moving to and then move it onto the harddrive and if so what is the reason for this?
    Thanks,
    Jon

    Hi Kappy.
    Thanks. Good information. Are you saying you can only /move/ across filesystems or disk volumes or are you saying you can only /copy/ across filesystems or disk volumes.
    My impression was that going from one hard drive to another hard drive - that the default was copy, but that you could force a move by holding down the Command Key. When I do this over here the little green plus symbol goes away seeming to imply that it is moving. However, /sometimes/ the dialog says it is Copying and sometime is says it is Moving.
    The problem is when it craps out in the middle of a Move (or a Copy). Ignoring the dupe file names with caps issue for the moment - what are you supposed to do when you get through a Move or a Copy (from Hard Drive to Hard Drive for instance) and Finder presents you with an error?!
    My understanding of your explanation is that Finder has gotten part way through a Copy and/or (?!) part way through an Erase.
    Is there any way of understanding WHERE it has gotten when it says it cannot complete an operation because filexyz.pdf is in use (even when it is not)? If I am moving 100 GB of data (or whatever) how am I supposed to know if it has only Copied some information, Copied and Erased some information, Moved some information, or Moved and Erased some information?
    Irrespective of the amount of data, when you get to the point that you cannot reasonably be expected to manually sort through this data how in the world am I supposed to know what Finder has done? More importantly, what is the best way to get back to a point at which you know what information is where?
    Thanks,
    Jon
    P.S. I'm moving data in Target Disk mode at this point and I am not getting errors like "The operation can't be completed because an item with the name "folder 100" already exists - WHEN I HAVE ALREADY SELECTED APPLY TO ALL AND OVERWRITE EXISTING FILES.

  • Upper and Lower Case in J2EE

    Hi Friends!
    I have an oracle database and i want to do string comparision.
    But i have and problem.
    I can use these sql in oracle gui
    <b>select UPPER(BTITLE) from sapsr3db.bilim_blog
    select BTITLE from sapsr3db.bilim_blog where {fn LCASE(bilim_blog.BTITLE)}='test'</b>
    But i cannot use in J2ee sap portal application. It gives these error sequently
    <b>Upper Function are not allowed here</b>
    <b>SQL syntax error: an illegal character "{" has been found in the statement text </b>
    Also someone asked same question before and didnt get answer.
    <u>Re: Case insesitive String comparison in Open SQL</u>
    Best Regards
    Eray

    Hi
    here you can find all the functions permitted in the OpenSQL:
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/f46cabaa874bc9a82234e8cf1d0696/frameset.htm
    So I think that Upper/Lower are not permitted... the work around is to get all the records and check the Upper and Lower case using Java Code functions into your business methods.
    Hoper this help.
    Vito

  • Queries using "LIKE" but ignoring upper or lower case

    I have a question. I need to query the database in a cursor for a search results page. The thing is that I'm searching for a contact name, lets say, and the name is "Steven". My query "WHERE" clause says:
    WHERE contactName LIKE '%steven%';
    but it doesnt find it because I understand Oracle is case sensitive. Is there an extension to the LIKE keyword to ignore upper or lowe cases in this type of instance?
    Thanks for your help,
    Alejandro

    hope this will help
    dev>WITH names AS
      2        (SELECT 'steven' lname  FROM dual
      3         UNION ALL
      4         SELECT 'Steven'   FROM dual
      5         UNION ALL
      6         SELECT 'STEVEN' FROM dual
      7         )
      8       ,name_list as(
      9         SELECT 'steven' dname FROM dual   
    10           )
    11     SELECT lname
    12     FROM names,name_list
    13     WHERE upper(lname) like '%'||upper(dname)||'%'
    14  ;
    LNAME
    steven
    Steven
    STEVEN

  • String to upper or lower case

    i can't remember that method ( i'm pretty sure there is one ), that takes a string and makes it all either upper or lower case.
    can anyone tell me?
    appreciate it.

    ah, thank you! i forgot about that...i was looking in StringBuffer...
    cheers (**goes back to homework...)

  • Why upper or lower case choices for image file extensions?

    Thanks ahead of time for any help.
    I'm wondering why you would want the file extension in lower or upper case.   Is there a reason to choose one or the other in various situations?  This choice is an option in the import dialog window box under File Renaming> Extensions with choices of Leave as-is, Lowercase & Uppercase.

    JG_Coleman wrote:
    clvrmnky wrote:
    Modern Macs are case-preserving and case-aware but not case-sensitive.
    The option is just to provide more control for specific workflows.
    Really..."to provide more control for specific workflows"???  I've gotta say... if I'm wrong about UNIX systems and case-sensitive file extensions... it truly would seem senseless that there would be a setting for controlling the case of file extensions.  So far as I know, almost every major application omits such a feature.  For what type of workflow would you ever need to specify the file extension case, if not for a file system that uses case-sensitive file extensions?  I'm just curious, myself, actually...  Is there something I'm missing?
    What about writing to legacy network storage where extensions are not accepted unless in a specific case.  I believe Netware used to enforce upper-case extensions at some point.  If you had a collection of legacy data or datastore and had some service or scripts that operating on them, and could not be easily changed, you might really want to control exactly how those filenames are created.
    There are any number of paths one can go down where you can end up cursing an application because it cannot do a simple action, like write out a filename in the right case. Think of all the complaints found in these forums where someone has cited some odd use-case no one else could ever have imagined and then stated that it is obvious that Lr should accommodate this because it is so simple to fix (e.g., to do something like provide an option whereby extensions are made all upper- or lower-case.)
    You do know that even Windows and OS X are case-preserving, right?  So, the actual case used to create the file is in the file metadata, regardless of what the Finder or Explorer or shell may decide to show you. How this metadata is used by various APIs is open-ended.

  • Upper or Lower Case Characters

    Hi everyone:
    I know this may sound silly, but I am new at this so be nice!
    When creating an address for your webpage, do the charcters
    have to be upper case or lower case. I know that I have seen some
    web addresses with both upper and lower case.

    I think she means domain name. In that case, it doesn't
    matter. There's no
    upper case in domain names.... As far as I know.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Alan" <[email protected]> wrote in
    message
    news:C0B5DC49.292429%[email protected]..
    > do you mean file and folder names?
    >
    > You can use what you want-
    > Something to be aware of, unix/linux servers (which are
    the majority of
    > hosting) are case-sensitive. If you name a file
    BoxTop.HTM and link to it
    > as boxtop.htm the link will not find the file.
    >
    > I would suggest a conservative file and folder naming
    convention to avoid
    > possible problems. Lower-case a-->z and 0-->9
    only. No blank spaces, no
    > punctuation or other things.
    >

  • Upper or lower case

    Hi. I am doing a program where you can enter a password either in upper or lower case and when the password is right the "access granted" is displayed, otherwise it will display "access denied". The program recognizes the password when I input it properly ("Rosebud") but I have not been able to do it in upper or lower case and I don't know how to do it. Could somebody please help me.
    Thanks
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JPasswordB extends JApplet implements ActionListener
         Container con = getContentPane ();
         JLabel please = new JLabel ("Please Enter Password");
         Font headlineFont = new Font("Helvetica", Font.BOLD, 36);
         JButton enter = new JButton("Click to Enter");
         JLabel passtyped = new JLabel ("");
         String password = "Rosebud";
         JPasswordField fieldpassword = new JPasswordField(12);
         public void init()
              please.setFont(headlineFont);
              con.add(please);
              con.add(fieldpassword);
              con.add(enter);
              con.setLayout(new FlowLayout());
              enter.addActionListener(this);
              fieldpassword.addActionListener(this);
              equalsIgnoreCase(String password);
         public void actionPerformed(ActionEvent e)
              String name = fieldpassword.getText();
              if
              ( name.equals ( password ) )
                   passtyped.setText("Access granted");
                   con.add(passtyped);
                        else
                             passtyped.setText("Access Denied");
                             con.add(passtyped);
                               validate();
    }

    Sorry. Here is the code
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JPasswordB extends JApplet implements ActionListener
         Container con = getContentPane ();
         JLabel please = new JLabel ("Please Enter Password");
         Font headlineFont = new Font("Helvetica", Font.BOLD, 36);
         JButton enter = new JButton("Click to Enter");
         JLabel passtyped = new JLabel ("");
         String password = "Rosebud";
         JPasswordField fieldpassword = new JPasswordField(8);
         public void init()
              please.setFont(headlineFont);
              con.add(please);
              con.add(fieldpassword);
              con.add(enter);
              con.setLayout(new FlowLayout());
              enter.addActionListener(this);
              fieldpassword.addActionListener(this);
         public void actionPerformed(ActionEvent e)
              String name = fieldpassword.getText();
              if(name.toLowerCase().equals(password.toLowerCase()))
                   passtyped.setText("Access granted");
                   con.add(passtyped);
                        else
                             passtyped.setText("Access Denied");
                             con.add(passtyped);
                               validate();
    }

  • Upper and Lower case letters

    Hi Folks
    I  have lower case letters coming in lot of fields - The lower case letters are coming in Key and Data Fields. In short my 90% od the infoobject have this challenge.
    I know I have following 2 options
    (1) Convert to upper in transformation
    (2) change the infoobject setting.
    I read couple of messages and I know putting "Convert to upper" in routines is a better option.
    Now I am trying to look why the option 2 is not good.
    I can guess the following reasons but I am looking for an SAP help document which can confirm the same.  Or if any users have experinced this issues when you allow lower case letters.
    (a) F4 list can take longer, this can impact query perfromance
    (b) Indexing can take longer.
    (c)Search will become case sensitive- SAP gives a warning when you switch on lower case letters.
    regards
    Poonam

    Hi Folks
    I  have lower case letters coming in lot of fields - The lower case letters are coming in Key and Data Fields. In short my 90% od the infoobject have this challenge.
    I know I have following 2 options
    (1) Convert to upper in transformation
    (2) change the infoobject setting.
    I read couple of messages and I know putting "Convert to upper" in routines is a better option.
    Now I am trying to look why the option 2 is not good.
    I can guess the following reasons but I am looking for an SAP help document which can confirm the same.  Or if any users have experinced this issues when you allow lower case letters.
    (a) F4 list can take longer, this can impact query perfromance
    (b) Indexing can take longer.
    (c)Search will become case sensitive- SAP gives a warning when you switch on lower case letters.
    regards
    Poonam

  • Convert strings to upper or lower case

    I want to convert a user strings all to lower case but keep the letter of the first string to a upper case
    I'm basically allowing users to input their first name, if they input JOHn, I want my system to convert it to John.

    Hi,
     It just so happens i created this function last night and have it right on hand.  You can try it by placing 1 TextBox and 1 Button on a form and past this code in.  Type the letters of the name in any case and it will capitalize the First
    letter of each part of the name and make the rest of it lower case.
    Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    TextBox1.Text = MakeProperCaseName(TextBox1.Text)
    End Sub
    Private Function MakeProperCaseName(ByVal strName As String) As String
    Dim sb As New System.Text.StringBuilder(strName.ToLower)
    Dim SetUpper As Boolean = True
    For i As Integer = 0 To sb.Length - 1
    If sb(i) = " " Then SetUpper = True
    If SetUpper And sb(i) <> " " Then
    Dim FirstLetter As String = sb(i).ToString.ToUpper
    sb.Replace(sb(i), FirstLetter, i, 1)
    SetUpper = False
    End If
    Next
    Return sb.ToString
    End Function
    End Class
    If you say it can`t be done then i`ll try it

Maybe you are looking for