Open GoogleCodeExporter opened 9 years ago
Hi, thank you for your suggestions. The second one is already suggested in
issue 33 as I understand it, so I changed the title to reflect the first
request only. As you say, it seams hard at first glance, but I will look at how
Métamorphose does it.
Original comment by marc.r...@gmail.com
on 21 Aug 2012 at 3:04
A note of importance. Metamorphose has two versions:
The stable version 1.
And the beta stage under development version 2.
Version 1 has the change case feature for sure as far as I know, I haven't used
the beta v2.
Original comment by jedi200...@gmail.com
on 22 Aug 2012 at 6:29
As for the second. To be more precise:
I meant enable/disable feature (checkbox?) for the filter "groups" that are
showed in the options window. Not after opening a group and clicking on the
substitutions tab.
Though enable/disable for both would be even better.
Original comment by jedi200...@gmail.com
on 22 Aug 2012 at 6:36
V2 has "change case" too, but I don't see "keep case", i.e. detection of
current case and applying it to the output.
And for the second one, that's what I understood ;)
Original comment by marc.r...@gmail.com
on 22 Aug 2012 at 10:59
Yes that is true. It doesn't have the system of "detecting" the case but it
does have the system of "changing" the case. You can use that to change the
substitution term's case. All you have to do is detect the type of case.
Perhaps by using regex or something. Sorry but the detecting thing is a little
troublesome for me too. Or... wait a minute... THAT'S IT. EUREKA!!!!
I have an idea. Look... in order to replace the term in the current system I
have to write the rules a multiple number of times with minor variations as
shown above, right? So how about using the "change" function on the SEARCH term
as well as the REPLACE term and searching and replacing via that method?
For example:
The user places a rule for searching for 'johnny brown' and replacing with
'jack garner' and checks the 'keep case'.
The system converts both terms to each case seaperately and goes through the
whole page searching for thevterm with the matching case and replaces them with
the converted replacement term.
ie:
search term = johnny brown
replacement term = jack garner
'keep case' selected
Convert both to lower case, just to be sure, and run search and replace:
johnny brown (match case) -> jack garner
Convert both to ALL CAPS, and run search and replace:
JOHNNY BROWN (match case) -> JACK GARNER
Convert both to Title Case, and run search and replace:
Johnny Brown (match case) -> Jack Garner
Convert both to Sentence case, and run search and replace:
Johnny brown (match case) -> Jack garner
In essence, the system does the work of allocating temporary search and replace
rules, derived from the user input search and replace rule. A bit tedious but
it's simple, no? Or you could figure out some way to detect via regex, but that
would be harder.
Original comment by jedi200...@gmail.com
on 23 Aug 2012 at 4:34
Although irregular terms like JOhnnY BRowN would be a problem.
Original comment by jedi200...@gmail.com
on 23 Aug 2012 at 4:37
Maybe those could be ignored or replaced, if it matches with the default search
and replace values. An infotip note saying 'keep case' will only change [these,
these and these] cases.
Original comment by jedi200...@gmail.com
on 23 Aug 2012 at 5:30
Good idea :) Thank you!
Original comment by marc.r...@gmail.com
on 24 Aug 2012 at 3:19
You're welcome. Though my method is an extremely simple one. Perhaps later you
could improve it in some way.
Original comment by jedi200...@gmail.com
on 24 Aug 2012 at 3:22
So what's the progress on this?
Original comment by jedi200...@gmail.com
on 6 Dec 2012 at 5:12
And when's the next official upgrade planned to occur?
Original comment by jedi200...@gmail.com
on 6 Dec 2012 at 5:14
Still haven't started on this one, but I would like to release a new version
this month.
Original comment by marc.r...@gmail.com
on 6 Dec 2012 at 1:20
I'm looking forward to it.
Original comment by jedi200...@gmail.com
on 23 Dec 2012 at 4:50
To convert to lowercase or uppercase you can use the code explained in the link
below:
http://www.hscripts.com/tutorials/javascript/string-case-converting.php
For Title Case you can use this:
http://stackoverflow.com/questions/196972/convert-string-to-title-case-with-java
script
For Sentence case:
http://www.javascriptsource.com/forms/sentence-case.html
Please please implement this. I really need it.
Original comment by jedi200...@gmail.com
on 13 Mar 2013 at 6:43
Thank you for the links, I will implement it when I can.
Original comment by marc.r...@gmail.com
on 14 Mar 2013 at 3:56
Has this been fixed yet? I can't seem to find this feature in the latest
release v0.16.1... and it's been exactly 2 years since the last comment here.
Is it fixed in the beta (if there is one)? If so, where can I find it?
Original comment by dammy...@gmail.com
on 14 Mar 2015 at 8:04
It's not implemented yet, sorry. There have been issues with higher priority.
Original comment by marc.r...@gmail.com
on 14 Mar 2015 at 2:59
Original issue reported on code.google.com by
jedi200...@gmail.com
on 21 Aug 2012 at 11:27