X
Tippen Sie hierhin, um die Version dieser Website für Mobilgeräte aufzurufen.

Hilfeforum

I need the find bar to stop matching smart quotes for straight ones.

Veröffentlicht

Some recent update of Firefox caused the find bar to match smart quotes (“ and ”) for the straight quote ("). Additionally, it now matches smart single quotes and apostrophes (‘ and ’) for the straight single quote (').

I need to disable this matching so that a search for a straight quote will only yield a straight quote result. Also, if any other character matching was added, I'd like to disable that too. I need exact results.

Some recent update of Firefox caused the find bar to match smart quotes (“ and ”) for the straight quote ("). Additionally, it now matches smart single quotes and apostrophes (‘ and ’) for the straight single quote ('). I need to disable this matching so that a search for a straight quote will only yield a straight quote result. Also, if any other character matching was added, I'd like to disable that too. I need exact results.

Ausgewählte Lösung

Assuming the text you're viewing is in the page and not in an editing control... I created a userscript that might tide you over temporarily. To use it, you will need to install the Greasemonkey extension, then visit the script's page and use the pale green install button on the right end of the gray bar.

Diese Antwort im Kontext lesen 1

Mehr Details zum System

Installierte Plugins

  • Google Update
  • Shockwave Flash 12.0 r0
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.06
  • 5.1.20913.0
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Anwendung

  • Firefox 27.0
  • User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
  • Hilfe-URL: https://support.mozilla.org/1/firefox/27.0/WINNT/en-US/

Erweiterungen

  • Adblock Plus 2.4.1 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d})
  • Download Status Bar 5.4.0 ({6c28e999-e900-4635-a39d-b1ec90ba0c0f})
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)
  • Logitech SetPoint 6.5 ({F003DA68-8256-4b37-A6C4-350FA04494DF}) (inaktiv)

JavaScript

  • incrementalGCEnabled: True

Grafiken

  • adapterDescription: AMD Radeon HD 7000 series
  • adapterDescription2:
  • adapterDeviceID: 0x6778
  • adapterDeviceID2:
  • adapterDrivers: aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64
  • adapterDrivers2:
  • adapterRAM: 1024
  • adapterRAM2:
  • adapterVendorID: 0x1002
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.16581
  • driverDate: 9-27-2012
  • driverDate2:
  • driverVersion: 9.2.0.0
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (AMD Radeon HD 7000 series Direct3D9Ex vs_3_0 ps_3_0)
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Direct3D 10

Veränderte Einstellungen

  • accessibility.typeaheadfind.flashBar: 0
  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.places.smartBookmarksVersion: 4
  • browser.sessionstore.upgradeBackup.latestBuildID: 20140127194636
  • browser.startup.homepage: https://www.google.com/
  • browser.startup.homepage_override.buildID: 20140127194636
  • browser.startup.homepage_override.mstone: 27.0
  • dom.mozApps.used: True
  • extensions.lastAppVersion: 27.0
  • gfx.direct3d.last_used_feature_level_idx: 0
  • network.cookie.prefsMigrated: True
  • places.database.lastMaintenance: 1392824335
  • places.history.expiration.transient_current_max_pages: 104858
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.importedState: True
  • privacy.sanitize.migrateFx3Prefs: True
  • storage.vacuum.last.index: 1
  • storage.vacuum.last.places.sqlite: 1391535806

Verschiedenes

  • User JS: Nein
  • Barrierefreiheit: Nein
jscher2000
  • Top 10 Contributor
7930 Lösungen 64763 Antworten
Veröffentlicht

Hilfreiche Antwort

Hi Chuck, this could be coincident with the launch of the "per-tab" find bar with its new UI design. However, I didn't see a specific but for the change in the tracking system (Bugzilla).

If this is a major pain point for you, to help track it down, could you do a comparison between Firefox 24 and Firefox 25? You can download the Portable builds of old versions of Firefox and run them without disturbing your main installation of Firefox. (However, you might not be able to run more than one at a time.) Those two would be here:

Does it work the way you want in either of those?

Hi Chuck, this could be coincident with the launch of the "per-tab" find bar with its new UI design. However, I didn't see a specific but for the change in the tracking system (Bugzilla). If this is a major pain point for you, to help track it down, could you do a comparison between Firefox 24 and Firefox 25? You can download the Portable builds of old versions of Firefox and run them without disturbing your main installation of Firefox. (However, you might not be able to run more than one at a time.) Those two would be here: * [http://sourceforge.net/projects/portableapps/files/Mozilla%20Firefox%2C%20Portable%20Ed./Mozilla%20Firefox%2C%20Portable%20Edition%2025.0.1/ Portable Firefox 25.0.1] * [http://sourceforge.net/projects/portableapps/files/Mozilla%20Firefox%2C%20Portable%20Ed./Mozilla%20Firefox%2C%20Portable%20Edition%2024.0/ Portable Firefox 24.0] Does it work the way you want in either of those?

Hilfreiche Antwort

Thanks for your response!

I tried 24 and 25 as you suggested, and it works like it used to in both of them. Straight quotes only match straight quotes. Since it worked for both, I tried 26 as well, and it works there too.

I then tried 27. This time it switched to the loose matching. Straight quotes match curly quotes. So we know it was something that was introduced in 27.

Any other thoughts for how to fix it in 27?

Thanks for your response! I tried 24 and 25 as you suggested, and it works like it used to in both of them. Straight quotes only match straight quotes. Since it worked for both, I tried 26 as well, and it works there too. I then tried 27. This time it switched to the loose matching. Straight quotes match curly quotes. So we know it was something that was introduced in 27. Any other thoughts for how to fix it in 27?
jscher2000
  • Top 10 Contributor
7930 Lösungen 64763 Antworten
Veröffentlicht

Okay, it took me forever to find this: Bug 276757 – Find in This Page should match regular quotes to curly quotes. No other characters (other than the ones you've identified) were grouped together in that change.

Regarding a preference to disable it, it was discussed, but no one made a specific case for why it might need to be disabled. You could file a new bug for that.

Before suggesting possible workarounds, is the problem general, i.e., with any web page? Or are there particular documents with predictable structure that might be amenable to a script-based solution.

Okay, it took me forever to find this: [https://bugzilla.mozilla.org/show_bug.cgi?id=276757 Bug 276757 – Find in This Page should match regular quotes to curly quotes]. No other characters (other than the ones you've identified) were grouped together in that change. Regarding a preference to disable it, it was discussed, but no one made a specific case for why it might need to be disabled. You could file a new bug for that. Before suggesting possible workarounds, is the problem general, i.e., with any web page? Or are there particular documents with predictable structure that might be amenable to a script-based solution.

Fragesteller

Thank you for taking the time to look that up! This is a general problem that affects all websites.

It is important to me because I am an editor. As such, straight quotes are one of the things I look for to replace. Searching a page for straight quotes is an easy way to be sure I don't miss any of them.

As it is now, I have to take the extra steps of copying the text out of a page, pasting it into a text editor, and searching for straight quotes there.

At the same time, I can understand the value of this loose matching in certain other instances. A check box to toggle it on and off would be ideal. However, for my purposes, I'd rather have loose matching off entirely than always on.

Thank you for taking the time to look that up! This is a general problem that affects all websites. It is important to me because I am an editor. As such, straight quotes are one of the things I look for to replace. Searching a page for straight quotes is an easy way to be sure I don't miss any of them. As it is now, I have to take the extra steps of copying the text out of a page, pasting it into a text editor, and searching for straight quotes there. At the same time, I can understand the value of this loose matching in certain other instances. A check box to toggle it on and off would be ideal. However, for my purposes, I'd rather have loose matching off entirely than always on.
cor-el
  • Top 10 Contributor
  • Moderator
16721 Lösungen 151175 Antworten
Veröffentlicht

This is fine when you want to search for single occurrences of text, but I think that they should make an exception and disable the fuzzy match when you use "Highlight all" to make it possible to check for possible errors as sometimes a user.js or mozilla.cfg file is posted that has Unicode quotes that won't work.
It would even be better if you could use regular expressions as is possible with the search bar on the about:config page. Then you can control this yourself with a bit more effort.

This is fine when you want to search for single occurrences of text, but I think that they should make an exception and disable the fuzzy match when you use "Highlight all" to make it possible to check for possible errors as sometimes a user.js or mozilla.cfg file is posted that has Unicode quotes that won't work.<br /> It would even be better if you could use regular expressions as is possible with the search bar on the about:config page. Then you can control this yourself with a bit more effort.

Geändert am von cor-el

jscher2000
  • Top 10 Contributor
7930 Lösungen 64763 Antworten
Veröffentlicht

Ausgewählte Lösung

Assuming the text you're viewing is in the page and not in an editing control... I created a userscript that might tide you over temporarily. To use it, you will need to install the Greasemonkey extension, then visit the script's page and use the pale green install button on the right end of the gray bar.

Assuming the text you're viewing is in the page and not in an editing control... I created a userscript that might tide you over temporarily. To use it, you will need to install the Greasemonkey extension, then visit the script's page and use the pale green install button on the right end of the gray bar. * Greasemonkey extension: https://addons.mozilla.org/firefox/addon/greasemonkey/ * Script: [http://userscripts.org/scripts/show/397553 Character Spotter]
jscher2000
  • Top 10 Contributor
7930 Lösungen 64763 Antworten
Veröffentlicht

Before and after screen shots. (Having problems with attaching images for some reason...)

Before and after screen shots. (Having problems with attaching images for some reason...)

Fragesteller

Thanks so much! This is a great workaround and will help a lot. Really appreciate it! :)

Thanks so much! This is a great workaround and will help a lot. Really appreciate it! :)
jscher2000
  • Top 10 Contributor
7930 Lösungen 64763 Antworten
Veröffentlicht

I forgot to mention that you might find it annoying to have the " button on every site. You can limit the sites to which it applies by editing the script (on the add-ons page, in the User Scripts category, you can right-click > Edit or click the Options button then the large Edit button).

This line can be edited to the site you care about:

// @include     http*://*

For example:

// @include     http*://www.example.com/*

For multiple sites, add a new @include line for each one.

I forgot to mention that you might find it annoying to have the " button on every site. You can limit the sites to which it applies by editing the script (on the add-ons page, in the User Scripts category, you can right-click > Edit or click the Options button then the large Edit button). This line can be edited to the site you care about: // @include http*://* For example: // @include http*://www.example.com/* For multiple sites, add a new @include line for each one.

Fragesteller

Thanks!

Thanks!