Data Interchange Format

Data Interchange Format (.dif) is a text file format used to import/export single spreadsheets between spreadsheet programs.

Applications that still support the DIF format are Collabora Online, Excel,[note 1] Gnumeric, and LibreOffice Calc. Historical applications that used to support it until they became end of life or no longer acknowledge support of the format are dBase, FileMaker, Framework, Lotus 1-2-3, Multiplan, OpenOffice.org Calc and StarCalc.[1][2]

A limitation with DIF format is that it cannot handle multiple spreadsheets in a single workbook. Due to the similarity in abbreviation and in age (both date to the early 1980s), the DIF spreadsheet format it is often confused with Navy DIF; Navy DIF, however, is an unrelated "document interchange format" for word processors.[3]

History

DIF was developed by Software Arts, Inc. (the developers of the VisiCalc program) in the early 1980s. The specification was included in many copies of VisiCalc, and published in Byte Magazine. Bob Frankston developed the format, with input from others, including Mitch Kapor, who helped so that it could work with his VisiPlot program. (Kapor later went on to found Lotus and make Lotus 1-2-3 happen.) The specification was copyright 1981.

DIF was a registered trademark of Software Arts Products Corp. (a legal name for Software Arts at the time).

Syntax

DIF stores everything in an ASCII text file to mitigate many cross-platform issues back in the days of its creation. However modern spreadsheet software, e.g. OpenOffice.org Calc and Gnumeric, offer more character encoding to export/import. The file is divided into 2 sections: header and data. Everything in DIF is represented by a 2- or 3-line chunk. Headers get a 3-line chunk; data, 2. Header chunks start with a text identifier that is all caps, only alphabetic characters, and less than 32 letters. The following line must be a pair of numbers, and the third line must be a quoted string. On the other hand, data chunks start with a number pair and the next line is a quoted string or a keyword.

Values

A value occupies two lines, the first a pair of numbers and the second either a string or a keyword. The first number of the pair indicates type:

  • −1 – directive type, the second number is ignored, the following line is one of these keywords:
    • BOT – beginning of tuple (start of row)
    • EOD – end of data
  • 0 – numeric type, value is the second number, the following line is one of these keywords:
    • V – valid
    • NA – not available
    • ERROR – error
    • TRUE – true boolean value
    • FALSE – false boolean value
  • 1 – string type, the second number is ignored, the following line is the string in double quotes

Header chunk

A header chunk is composed of an identifier line followed by the two lines of a value.

  • TABLE - a numeric value follows of the version, the disused second line of the value contains a generator comment
  • VECTORS - the number of columns follows as a numeric value
  • TUPLES - the number of rows follows as a numeric value
  • DATA - after a dummy 0 numeric value, the data for the table follow, each row preceded by a BOT value, the entire table terminated by an EOD value

The numeric values in header chunks use just an empty string instead of the validity keywords.

Discrepancies in implementations

Some implementations (notably those of older Microsoft products) swapped the meaning of VECTORS and TUPLES. Some implementations are insensitive to errors in the dimensions of the table as written in the header and simply use the layout in the DATA section.

Example

For example, assume we have two columns with one column header row and two data rows:

Text Number
hello 1
has a double quote " in text −3

In a .dif file, this would be (→ indicates comments):

TABLE
0,1
"EXCEL"
VECTORS     → the number of columns follows as a numeric value
0,2         → '0' indicates that it's a numeric type, '2' since we have 2 columns
""
TUPLES      → the number of rows follows as a numeric value
0,3         → '0' indicates that it's a numeric type, '3' since we have 3 rows
""
DATA        → after a dummy 0 numeric value, the data for the table follow
0,0         → this is the dummy 0 numeric value
""
-1,0        → '-1' for the directive type. This is followed by either a 'BOT' or an 'EOD'
BOT         → signifies the start of a row
1,0         → '1' since the cell contains a string. (The second number is ignored)
"Text"      → this is the String that's in the cell
1,0         → '1' since the cell contains a string.
"Number" 
-1,0  
BOT         → another row 
1,0         → a string follows
"hello"
0,1         → numeric value ('0') of value '1'
V           → 'V' is for 'Valid'
-1,0 
BOT         → another row
1,0
"has a double quote "" in text"
0,-3
V
-1,0 
EOD         → End of Data

See also

Notes

  1. ^ Microsoft Excel's implementation caused interoperability problems, see § Discrepancies in implementations.

References

  1. ^ "LibreOffice Calc – Supported File Formats". LibreOfficeHelp.com. 2020-10-06. Archived from the original on 2016-12-13. Retrieved 2020-09-08.
  2. ^ "File formats that are supported in Excel". support.microsoft.com. Archived from the original on 2020-11-11. Retrieved 2021-09-08.
  3. ^ Petrosky, Mary (August 5, 1985). "File Conversion Market Grows". InfoWorld. Vol. 7, no. 31. pp. 36–37. "Among the file formats designed to facilitate the interchange of text files between microcomputers running different word processing software, IBM's Document Content Architecture (DCA) and the U.S. Navy's document interchange format (DIF) seem to have the greatest support."

Sources

Read other articles:

2005 film For 1980 film 《救世者》, see Ronny Yu. The SaviourPosterDirected byPeter TemplemanWritten byPeter TemplemanProduced byStaurt ParkynStarringThom CampbellSusan PriorRhys MuldoonDavid SomervilleNicholas HammondRobin GoldsworthyMichael BoothCinematographyDavid HawkinsEdited byMatt WalkerMusic byJessica WellsProductioncompanyAustralian Film Television and Radio SchoolDistributed byMagnolia PicturesRelease dates June 18, 2005 (2005-06-18) (SNOWYfest International ...

 

Pemilihan umum legislatif Yunani September 2015Januari 2015201920 September 2015← Anggota sebelumnyaAnggota terpilih →Seluruh 300 kursi di Parlemen Yunani151 kursi untuk meraih status mayoritasJajak pendapatTerdaftar9.840.525 1,1%Kehadiran pemilih5.566.295 (56,6%)7,0 ppKandidat   Partai pertama Partai kedua Partai ketiga   [[Berkas:|113px]] Ketua Alexis Tsipras Vangelis Meimarakis Nikolaos Michaloliakos Partai Syriza ND XA Ketua sejak 9 Februari 2008...

 

Saudiaالسعودية IATA ICAO Kode panggil SV SVA SAUDIA DidirikanSeptember 1945; Galat: first parameter cannot be parsed as a date or time. (1945-09)PenghubungJeddahPenghubung sekunderDammamRiyadhProgram penumpang setiaAl Fursan LoyaltyAliansiSkyTeamSkyTeam CargoAnak perusahaanSaudia CargoFlyadealArmada156Tujuan121Perusahaan indukPemerintah Arab SaudiKantor pusatJeddahTokoh utama Saleh Aljasser (Ketua) Ibrahim Alomar (Direktur Jenderal)[1] Ibrahim Alkoshy (CEO)[butuh ruju...

Training college in Opposite Denmark Hill railway station, EnglandWilliam Booth CollegeLooking towards the main building at William Booth CollegeGeneral informationTypeTraining collegeLocationOpposite Denmark Hill railway stationAddressChampion Park, London, Greater London SE5 8BQ, United KingdomCountryEnglandCoordinates51°28′04″N 0°05′19″W / 51.4677°N 0.0886°W / 51.4677; -0.0886Construction started8 July 1929Renovated2010OwnerThe Salvation ArmyDesign and ...

 

Pour les autres membres de la famille, voir Famille Rémusat. Charles de Rémusat Portrait par Paul Delaroche. Fonctions Député 12 octobre 1873 – 4 juin 1875 (1 an, 7 mois et 23 jours) Élection 12 octobre 1873 (élection partielle) Circonscription Haute-Garonne Législature Assemblée nationale (Troisième République) Groupe politique Centre droit (1873-1875) Ministre des Affaires étrangères 2 août 1871 – 25 mai 1873 (1 an, 9 mois et 23 jours) Présid...

 

Voce principale: Unione Calcio Sampdoria. UC SampdoriaStagione 1997-1998 Sport calcio Squadra Sampdoria Allenatore César Luis Menotti (1ª-8ª)[1] Vujadin Boškov (9ª-34ª) Presidente Enrico Mantovani Serie A9º (in Coppa Intertoto) Coppa ItaliaOttavi di finale Coppa UEFATrentaduesimi di finale Maggiori presenzeCampionato: Ferron e Montella (33) Miglior marcatoreCampionato: Montella (20)Totale: Montella (21) StadioLuigi Ferraris 1996-1997 1998-1999 Dati aggiornati al 16 ma...

Ballon d'or 2006 Fabio Cannavaro.Généralités Sport Football Organisateur(s) France Football Éditions 51e Catégorie Trophée mondial Date 2006 Participants 50 joueurs nommés Site web officiel Site officiel Palmarès Vainqueur Fabio Cannavaro (1) Deuxième Gianluigi Buffon Troisième Thierry Henry Navigation Édition précédente Édition suivante modifier Le Ballon d'or 2006, qui récompense le meilleur footballeur de l'année évoluant en Europe, a été attribué à Fabio Cannavar...

 

Bulgarian footballer This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Nikola Yordanov – news · newspapers · books · scholar · JSTOR (December 2023) Nikola YordanovBulgarian: Никола ЙордановPersonal informationDate of birth (1938-10-23)October 23, 1938Place of birth Ruse, BulgariaDate o...

 

American judge (born 1957) This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Carolyn B. McHugh – news · newspapers · books · scholar · JSTOR (December 2019) (Learn how and when to remove this mess...

Species of rodent Richardson's ground squirrel Conservation status Least Concern  (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Rodentia Family: Sciuridae Genus: Urocitellus Species: U. richardsonii Binomial name Urocitellus richardsonii(Sabine, 1822) Synonyms Spermophilus richardsonii Richardson's ground squirrel (Urocitellus richardsonii), also known as the dakrat or flickertail, is a North American ...

 

Hamlet in New York, United StatesJones PointhamletJones PointLocation of Jones Point in New YorkCoordinates: 41°17′10.16″N 73°57′22.77″W / 41.2861556°N 73.9563250°W / 41.2861556; -73.9563250CountryUnited StatesStateNew YorkCountyRockland Jones Point is a former hamlet located in the town of Stony Point in Rockland County in the state of New York, United States, located north of Tomkins Cove; east of Bear Mountain State Park; south of Iona Island; and west ...

 

English pirate (1689–1717) For the English footballer, see Samuel Bellamy (footballer). Samuel BellamyBornc. (1689-02-23)23 February 1689Hittisleigh, Devon, Kingdom of EnglandDied26 April 1717 (1717-04-27) (aged 28)Wellfleet, Province of Massachusetts Bay, Thirteen ColoniesPiratical careerNicknameBlack Sam Bellamy,Prince of Pirates,Black Bellamy,Robin Hood of the SeaTypeGolden Age PirateYears active1716 – 26 April 1717RankElected Commodore of pirate fleetBase of operationsBlanco...

Part of a series on theHistory of Japan ListPaleolithicbefore 14,000 BCJōmon14,000 – 1000 BCYayoi 1000 BC – 300 ADKofun 300 AD – 538 ADAsuka 538 – 710Nara 710 – 794HeianFormer Nine Years' WarLater Three-Year WarGenpei War 794–1185KamakuraJōkyū WarMongol invasionsGenkō WarKenmu Restoration 1185–1333MuromachiNanboku-chō periodSengoku period 1336–1573Azuchi–Momoyama Nanban tradeImjin WarBattle of Sekigahara 1573–1603Edo (Tokugawa) Tok...

 

كأس أمم أوقيانوسيا معلومات عامة الرياضة كرة القدم انطلقت 1973 (منذ 51 سنة) المنظم اتحاد أوقيانوسيا لكرة القدم المنطقة أوقيانوسيا عدد النسخ 21 التواتر كل 4 سنوات (سابقًا سنتين) عدد المشاركين 8 منتخبات في البطولة قائمة الفائزين آخر بطل  نيوزيلندا (اللقب السادس) الأكثر تتويجًا &#...

 

Ramses VIOstrakon con ritratto di Ramses VI. Museo del Louvre, Parigi.Re dell'Alto e Basso EgittoIn carica1144 a.C. –1136 a.C. PredecessoreRamses V SuccessoreRamses VII Nome completoNebmaatra-Meriamon Ramses-Netjerhekaiunu Nascitaca. 1180/1170 a.C. Morte1136 a.C. Luogo di sepolturaValle dei Re, tomba KV9 DinastiaXX dinastia egizia PadreRamses III MadreIside Ta-Hemdjert ConsorteNubkhesbed[1] FigliRamses VII, Iside, Amonherkhepshef, Panebenkemyt[2] ReligioneReligion...

Organization devoted to American clairvoyant Edgar Cayce This article is part of a series onAlternative medicine General information Alternative medicine History Terminology Alternative veterinary medicine Quackery (health fraud) Rise of modern medicine Pseudoscience Antiscience Skepticism Scientific Therapeutic nihilism Fringe medicine and science Acupressure Acupuncture Alkaline diet Anthroposophic medicine Apitherapy Applied kinesiology Aromatherapy Association for Research and Enlightenme...

 

French mathematician and historian Mutafian in 2014 Armen (Claude) Z. Moutafian (born 21 July 1942) is a French mathematician and a historian who specializes in Armenian history. He is a Foreign Member of Armenian Academy of Sciences.[1] He is the son of Zareh Mutafian. Biography Born in 1942 in Clamart, France, Claude Mutafian is an associate professor of mathematics and senior lecturer from the Paris 13 University in Villetaneuse. Following the publication of several books on algebr...

 

Sporting event delegationMacedonia at the1996 Summer OlympicsFlag of the Republic of MacedoniaIOC codeMKDNOCOlympic Committee of North MacedoniaWebsitewww.mok.org.mk (in Macedonian)in AtlantaCompetitors11 (8 men and 3 women) in 4 sportsFlag bearer Vladimir BogoevskiMedals Gold 0 Silver 0 Bronze 0 Total 0 Summer Olympics appearances (overview)19962000200420082012201620202024Other related appearances Yugoslavia (1920–1988) Independent Olympic Participants (1992) The Republ...

この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。 出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?: 小原鉄心 – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL (2015年8月)  凡例小原鉄心 時代 江戸時代末期(幕末)か�...

 

Portogallo ai Giochi della XV OlimpiadeHelsinki 1952 Codice CIOPOR Comitato nazionaleComité Olímpico de Portugal Atleti partecipanti71 in 10 discipline Di cui uomini/donne68 - 3 Medagliere Posizione 40ª 0 0 1 1 Cronologia olimpica (sommario)Giochi olimpici estivi 1912 · 1920 · 1924 · 1928 · 1932 · 1936 · 1948 · 1952 · 1956 · 1960 · 1964 · 1968 · 1972 · 1976 · 1980 · 1984 · 1988...