Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FindChangeByList script FAQ

Explorer ,
Apr 13, 2014 Apr 13, 2014

I was wondering if Indesign Find and Change By List that can find something except one thing, for example:

I want to find All the Mr. xxxxx, except Mr. Ko and then change font style.

How can I do that.

TOPICS
Scripting
788
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 13, 2014 Apr 13, 2014

Hi Harvey,

The GREP pattern : "(Mr.\s(?!Ko\s)\w+)" include in FindChangeList.txt


grep     {findWhat:"(Mr.\\s(?!Ko\\s)\\w+)"}     {appliedCharacterStyle:"Name"}     {includeFootnotes:true, includeFootnotes:true, includeHiddenLayers:true, wholeWord:false}

Regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 13, 2014 Apr 13, 2014

but in thins case:

Afghanistan

Albania

Algeria

Andorra

Angola

Anguilla

Argentina

Armenia

Aruba

Australia

Austria

Azerbaijan

Bahamas

Bahrain

Bangladesh

Barbados

Belarus

Belgium

Belize

Benin

Bermuda

Bhutan

Bolivia

Bosnia and Herzegovina

Botswana

Brazil

Brunei Darussalam

Bulgaria

Buma (Myanmar)

Burkina Faso

Burundi

Cambodia

Cameroon

Canada

Cape Verde

Cayman Islands

Central African Republic

Chad

Chile

China

Colombia

Comoros

Congo

Cook Islands

Costa Rica

Cote d`Ivoire Republic

Croatia

Cuba

Cyprus

Czech Republic

Dem Rep of Congo

Denmark

Djibouti

Dominica

Dominican Republic

East Timor

Ecuador

Egypt

El Salvador

Equatorial Guinea

Eritrea

Estonia

Ethiopia

Finland

France

French Polynesia

Fuji

Gabon

Gambia

Georgia

Germany

Ghana

Gibraltar

Greece

Grenada

Guatemala

Guinea-Bissau

Guyana

Haiti

Honduras

Hong Kong

Hungary

Iceland

India

Indonesia

Iran

Iraq

Ireland

Israel

Italy

Jamaica

Japan

Jordan

Kazakhstan

Kenya

Kiribati

Korea

Kuwait

Kyrgyzstan

Laos

Latvia

Lebanon

Leone

Lesotho

Liberia

Libya

Liechtenstein

Lithuania-立陶宛語

Luxembourg

Macao

Macedonia

Madagascar

Malawi

Malaysia

Maldives

Mali

Malta

Marshall Islands

Mauritania

Mauritius

Maxico

Micronesia

Moldiva

Monaco

Mongolia

Morocco

Mozambique

Namibia

Nauru

Nepal

Netherlands

New Caledonia

New Zealand

Nicaraque

Niger

Nigeria

Norway

Oman

Pakistan

Palau

Panama

Papua New Guinea

Paraguay

Peru

Philippines

Poland

Portugal

Qatar

Romania

Russia

Rwanda

Saint Christopher (St.Kitts) and Nevis

Saint Lucia

Saint Vincent and the Grenadines

Samoa

San Marino

Sao Tome and Principe

Saudi Arabia

Senegal

Serbia and Montenegro

Seychelles

Sierra Leone

Singapore

Slovakia

Slovenia

I want to except Austria, how can I do that?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 13, 2014 Apr 13, 2014

Hi,

Since this is a FindChangeList ==>

1. do apply proper charStyle for all;

2. do step back only for Austria

Jarek

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 14, 2014 Apr 14, 2014

Not really in such as this easy situation.

If in difficult situation, for example, the different country name appear in different place frequently, do step back not that easy.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 14, 2014 Apr 14, 2014
LATEST

Hi Harvey,

You can do this in FindChangeList.txt

grep     {findWhat:"(Afghanistan|Albania|Algeria|Andorra)"}     {appliedCharacterStyle:"Name"}     {includeFootnotes:true, includeFootnotes:true, includeHiddenLayers:true, wholeWord:false}

Regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines