dict에 사전 하위 집합의 출력을 제공하도록 어떻게 지시합니까?

dict에 사전 하위 집합의 출력을 제공하도록 어떻게 지시합니까?

dict를 설치할 때 기본적으로 이것을 얻었습니다 -

[$] dict appease

1 definition found

From English-Hindi FreeDict Dictionary ver. 1.5.2 [fd-eng-hin]:

  appease <VT>
  1. संतुष्ट~करना
        "Shop keepers try their best to appease their customer."
        "The owner appeased his workers by granting them bonus."

매뉴얼 페이지를 살펴보면 프로그램이 두 개의 서버만 사용하는 것으로 나타났습니다.

[$] dict -D

Databases available:
 vera       V.E.R.A. -- Virtual Entity of Relevant Acronyms (February 2016)
 fd-eng-hin English-Hindi FreeDict Dictionary ver. 1.5.2

그런 다음 로컬 지점 파일을 만들고 여기에 다음 항목을 추가합니다.

┌─[shirish@debian] - [~] - [10089]
└─[$] cat ~/.dictrc

     1  server dict.org
     2  server dict0.us.dict.org

이로 인해 몇 가지 결과가 나왔습니다.

[$] dict appease

3 definitions found

From The Collaborative International Dictionary of English v.0.48 [gcide]:

  Appease \Ap*pease"\, v. t. [imp. & p. p. {Appealed}; p. pr. &
     vb. n. {Appeasing}.] [OE. apesen, apaisen, OF. apaisier,
     apaissier, F. apaiser, fr. a (L. ad) + OF. pais peace, F.
     paix, fr. L. pax, pacis. See {Peace}.]
     To make quiet; to calm; to reduce to a state of peace; to
     still; to pacify; to dispel (anger or hatred); as, to appease
     the tumult of the ocean, or of the passions; to appease
     hunger or thirst.
     [1913 Webster]

     Syn: To pacify; quiet; conciliate; propitiate; assuage;
          compose; calm; allay; hush; soothe; tranquilize.
          [1913 Webster]

From WordNet (r) 3.0 (2006) [wn]:

  appease
      v 1: cause to be more favorably inclined; gain the good will of;
           "She managed to mollify the angry customer" [syn: {pacify},
           {lenify}, {conciliate}, {assuage}, {appease}, {mollify},
           {placate}, {gentle}, {gruntle}]
      2: overcome or allay; "quell my hunger" [syn: {quell}, {stay},
         {appease}]
      3: make peace with [syn: {propitiate}, {appease}]

From Moby Thesaurus II by Grady Ward, 1.0 [moby-thesaurus]:

  86 Moby Thesaurus words for "appease":
     abate, allay, alleviate, anesthetize, assuage, benumb, calm,
     calm down, cater to, coddle, compose, conciliate, content, cool,
     cradle, cushion, deaden, deaden the pain, defuse, diminish,
     dulcify, dull, ease, ease matters, even out, extenuate, feast,
     feed, foment, gentle, give relief, gloss over, gratify, hush,
     immolate before, lay, lay the dust, lessen, lull,
     make propitiation, make sacrifice to, mitigate, mollify, numb,
     offer sacrifice, pacify, pad, palliate, pamper, placate, poultice,
     pour balm into, pour balm on, pour oil on, propitiate, quell,
     quench, quiet, reduce, regale, relieve, rest, rock, rock to sleep,
     sacrifice, salve, sate, satiate, satisfy, slacken, slake, smooth,
     smooth down, smooth over, smoothen, soften, soothe, spoil,
     stabilize, steady, still, stupe, subdue, sweeten, tranquilize,
     whitewash

dict -D를 실행하면 이제 이전과 다른 목록이 제공됩니다.

─[$] dict -D

Databases available:
 gcide          The Collaborative International Dictionary of English v.0.48
 wn             WordNet (r) 3.0 (2006)
 moby-thesaurus Moby Thesaurus II by Grady Ward, 1.0
 elements       The Elements (07Nov00)
 vera           V.E.R.A. -- Virtual Entity of Relevant Acronyms (September 2014)
 jargon         The Jargon File (version 4.4.7, 29 Dec 2003)
 foldoc         The Free On-line Dictionary of Computing (18 March 2015)
 easton         Easton's 1897 Bible Dictionary
 hitchcock      Hitchcock's Bible Names Dictionary (late 1800's)
 bouvier        Bouvier's Law Dictionary, Revised 6th Ed (1856)
 devil          The Devil's Dictionary (1881-1906)
 world02        CIA World Factbook 2002
 gaz2k-counties U.S. Gazetteer Counties (2000)
 gaz2k-places   U.S. Gazetteer Places (2000)
 gaz2k-zips     U.S. Gazetteer Zip Code Tabulation Areas (2000)
 fd-tur-eng     Turkish-English FreeDict Dictionary ver. 0.2.1
 fd-por-deu     Portuguese-German FreeDict Dictionary ver. 0.1.1
 fd-nld-eng     Dutch-English Freedict Dictionary ver. 0.1.3
 fd-eng-ara     English-Arabic FreeDict Dictionary ver. 0.6.2
 fd-spa-eng     Spanish-English FreeDict Dictionary ver. 0.1.1
 fd-eng-hun     English-Hungarian FreeDict Dictionary ver. 0.1
 fd-ita-eng     Italian-English FreeDict Dictionary ver. 0.1.1
 fd-wel-eng     Welsh-English Freedict dictionary
 fd-eng-nld     English-Dutch FreeDict Dictionary ver. 0.1.1
 fd-fra-eng     French-English FreeDict Dictionary ver. 0.3.4
 fd-tur-deu     Turkish-German FreeDict Dictionary ver. 0.1.1
 fd-swe-eng     Swedish-English FreeDict Dictionary ver. 0.1.1
 fd-nld-fra     Nederlands-French FreeDict Dictionary ver. 0.1.1
 fd-eng-swa     English-Swahili xFried/FreeDict Dictionary
 fd-deu-nld     German-Dutch FreeDict Dictionary ver. 0.1.1
 fd-fra-deu     French-German FreeDict Dictionary ver. 0.1.1
 fd-eng-cro     English-Croatian Freedict Dictionary
 fd-eng-ita     English-Italian FreeDict Dictionary ver. 0.1.1
 fd-eng-lat     English-Latin FreeDict Dictionary ver. 0.1.1
 fd-lat-eng     Latin-English FreeDict Dictionary ver. 0.1.1
 fd-fra-nld     French-Dutch FreeDict Dictionary ver. 0.1.2
 fd-ita-deu     Italian-German FreeDict Dictionary ver. 0.1.1
 fd-eng-hin     English-Hindi FreeDict Dictionary ver. 1.5.1
 fd-deu-eng     German-English FreeDict Dictionary ver. 0.3.4
 fd-por-eng     Portuguese-English FreeDict Dictionary ver. 0.1.1
 fd-lat-deu     Latin - German FreeDict dictionary ver. 0.4
 fd-jpn-deu     Japanese-German FreeDict Dictionary ver. 0.1.1
 fd-eng-deu     English-German FreeDict Dictionary ver. 0.3.6
 fd-eng-scr     English-Serbo-Croat Freedict dictionary
 fd-eng-rom     English-Romanian FreeDict Dictionary ver. 0.6.1
 fd-iri-eng     Irish-English Freedict dictionary
 fd-cze-eng     Czech-English Freedict dictionary
 fd-scr-eng     Serbo-Croat-English Freedict dictionary
 fd-eng-cze     English-Czech fdicts/FreeDict Dictionary
 fd-eng-rus     English-Russian FreeDict Dictionary ver. 0.3
 fd-afr-deu     Afrikaans-German FreeDict Dictionary ver. 0.3
 fd-eng-por     English-Portuguese FreeDict Dictionary ver. 0.2.2
 fd-hun-eng     Hungarian-English FreeDict Dictionary ver. 0.3.1
 fd-eng-swe     English-Swedish FreeDict Dictionary ver. 0.1.1
 fd-deu-ita     German-Italian FreeDict Dictionary ver. 0.1.1
 fd-cro-eng     Croatian-English Freedict Dictionary
 fd-dan-eng     Danish-English FreeDict Dictionary ver. 0.2.1
 fd-eng-tur     English-Turkish FreeDict Dictionary ver. 0.2.1
 fd-eng-spa     English-Spanish FreeDict Dictionary ver. 0.2.1
 fd-nld-deu     Dutch-German FreeDict Dictionary ver. 0.1.1
 fd-deu-por     German-Portuguese FreeDict Dictionary ver. 0.2.1
 fd-swa-eng     Swahili-English xFried/FreeDict Dictionary
 fd-hin-eng     English-Hindi Freedict Dictionary [reverse index]
 fd-deu-fra     German-French FreeDict Dictionary ver. 0.3.1
 fd-eng-fra     English-French FreeDict Dictionary ver. 0.1.4
 fd-slo-eng     Slovak-English Freedict dictionary
 fd-gla-deu     Scottish Gaelic-German FreeDict Dictionary ver. 0.1.1
 fd-eng-wel     English-Welsh Freedict dictionary
 fd-eng-iri     English-Irish Freedict dictionary
 english        English Monolingual Dictionaries
 trans          Translating Dictionaries
 all            All Dictionaries (English-Only and Translating)

이제 선택된 몇 개의 사전에서만 출력을 얻고 싶습니다.

gcide          The Collaborative International Dictionary of English v.0.48
     wn             WordNet (r) 3.0 (2006)
     moby-thesaurus Moby Thesaurus II by Grady Ward, 1.0
     elements       The Elements (07Nov00)
     vera           V.E.R.A. -- Virtual Entity of Relevant Acronyms (September 2014)
     jargon         The Jargon File (version 4.4.7, 29 Dec 2003)
     foldoc         The Free On-line Dictionary of Computing (18 March 2015)
     easton         Easton's 1897 Bible Dictionary
     hitchcock      Hitchcock's Bible Names Dictionary (late 1800's)
     bouvier        Bouvier's Law Dictionary, Revised 6th Ed (1856)
     devil          The Devil's Dictionary (1881-1906)
     world02        CIA World Factbook 2002

답변1

호출 시 목록에 나열된 특정 사전 데이터베이스에 대한 결과만 표시할 수 있습니다 dict -D.

dict이는 옵션 과 함께 명령을 호출 -d하고 그 뒤에 데이터베이스 이름과 검색하려는 의미가 있는 단어를 호출하여 수행됩니다 .

dict()의 사람들 man dict:

-d dbname or --database dbname
          Specifies a specific database to  search.   The  default  is  to
          search  all databases (a "*" from the DICT protocol).  Note that
          a "!" in the DICT protocol means to search all of the  databases
          until a match is found, and then stop searching.

따라서 wn(Wordnet)의 데이터베이스에서 "life"의 의미를 찾으려면 터미널에서 이 명령을 실행해야 합니다.

[$] dict -d wn life.

폴리스티렌

.dictrc 파일에는 두 개의 서버 이름이 있으며 dict 프로그램에는 두 서버에서 사용 가능한 모든 사전 데이터베이스가 포함됩니다. 로컬에 설치된 사전 데이터베이스는 두 개뿐이며 이는 홈 디렉터리에 .dictrc 파일을 생성하기 전의 첫 번째 출력 메시지입니다.

.dictrc 파일을 삭제하는 경우 필요한 데이터베이스를 수동으로 설치해야 합니다.

이게 도움이 되길 바란다.

관련 정보