Share to: share facebook share twitter share wa share telegram print page

Secondary notation

Secondary notation is the set of visual cues used to improve the readability of a formal notation. Examples of secondary notation include the syntax highlighting of computer source code, sizes and color codes for easy recognition of consumer symbols such as bank notes or coins, or the regular typographic conventions often found in technical books to highlight sections with the same type of content.

Secondary notation provides redundant (more than necessary) information; if the visual cues are the only way that some information is provided, such as in traffic lights, or a chart's key, it is not secondary. Secondary notation is often not a part of the formal notation itself. Rather, it is a method of organizing the formal notation to allow it to be more easily understood. Thus, secondary notation does not change the actual meaning of the formal notation, rather it allows for the meaning to be readily understood. In text such as programming languages, this can be done using cues such as indentation and coloring. In formal graphical notations, this can be done through the use of symmetry or proximity to indicate relatedness.

In different contexts

Secondary notation annotates formal notation in a number of contexts which can be broken down to two main domains: text and graphics.

Textual context

There are a number of common instances of secondary notation that are seen in text. Secondary notation is common in typography and in code editors appearing as boldness, italics, and spacing/indentation.

Textual secondary notation in computer source code

Secondary notation in the form of coloring and indentation is commonly implemented in integrated development environments to make source code more readable and make the formal notation more understandable. The following C source code does not use secondary notation to ease the interpretation of the formal notation:

int main(){while(true){printf("I'm stuck in an infinite loop!");}}

The following is the same code, but with indentation and syntax highlighting. As a result, the formal notation of C is easier to read:

int main()
{
    while (true) {
        printf("I'm stuck in an infinite loop!");
    }
}

Textual secondary notation in typography

A number of examples of secondary notation that commonly appear in English writing include

  • Boldness which is used to put emphasis on a certain area of text.
  • Italics which is another method of applying emphasis on a certain area of text.
  • The following example effectively uses indentation to separate items on a shopping list that must be bought at different stores. Indented items all must be bought at the store within which the items are nested.
 1. Allison's Frozen Foods 
     - Frozen Tuna
     - Chicken patties
     - Fish sticks
     - 2lb of hamburgers
  
 2. Sarah's Groceries
     - 3 boxes of cereal
     - 2 boxes of fruit juice
     - 2 dozen eggs 
  
 3. Jim's Formal Wear
     - 2 dress shirts
     - 1 orange tie

Graphical context

Secondary notation is commonly used in graphical contexts to better convey information beyond what the formal notation of the graphic makes explicit.

Flowcharts

This is a well drawn model of the steps a user would take to place an order for some products on a website.
This is a poorly drawn model of the steps a user would take to place an order for some products on a website.

A graphical representation that has been well studied and can be heavily impacted by secondary notation is a flowchart and especially drakon-charts. Research has shown that there are a number of layout factors unincorporated into the formal notation that impact a flowchart's ease of understanding:

  1. Minimize arc crossings: the number of times lines cross should be kept to a minimum to ease traceability. In drakon-charts all the arc (line) crossings are forbidden.
  2. Minimize line bends: additional bends add to the visual complexity of the model. In drakon-charts all the line bends are minimized.
  3. Leverage symmetry: position elements symmetrically when possible
  4. Align labels horizontally: textual labels are easier to read when aligned horizontally
  5. Use of locality: group related items together to be easily recognizable

The examples on the right show how these techniques can drastically affect the ease of understanding when looking at a process model. The model depicts a simplified process for ordering products from a website. Both diagrams contain exactly the same blocks with the same interconnections. However, the one that uses better secondary notation can be readily understood whereas the other model requires careful analysis to understand its contents.

Misuse

While inadequate use of secondary notation can significantly increase the amount of effort necessary to understand a model, misuse of secondary notation can also be a detriment. Use of symmetry can make a graphic more visually appealing, but can also convey misconceptions if used incorrectly. For instance, placing unrelated items close together may cause a reader to perceive them as being related. Additionally, arbitrary use of coloring may distract a reader as they wonder about the meanings of the various colors.

Experts vs. novices

The ability of individuals to understand and use secondary notation has been shown[citation needed] to vary based on experience within the relevant field. Experts in a field are generally more able to utilize the clues provided by secondary notation. Specifically, while reading diagrams, experts have been shown to have more skill at reading the larger structure of the diagram and using it to guide their examination of the details provided by the formal notation. This compares to novices who often focus on the details of the formal notation, ignoring the hints provided by the secondary notation.

There are also differences based on level of experience/expertise when creating documents that utilize secondary notation. Experts tend to be more consistent in their use of conventions while novices tend to vary between conventions, sometimes adhering on a surface level, but failing to convey the desired information. In the case of circuit diagrams, this is illustrated by common novice mistakes such as creating visual symmetry where there is no logical symmetry and frequent transitions between differing secondary notation conventions.

As part of formal notation

In some cases, secondary notation is part of the formal notation. Such formal notations attempt to improve readability by enforcing the presence of visual cues. The trade-off is that, what in many other cases is only secondary notation (like, for example, indentation in free-form languages), is now part of the formal notation, and thus is not optional.

For example, the Python programming language requires source code to follow strict indentation rules. This is intended to improve readability of the code, by ensuring that statements that are at the same level of nesting within a block are aligned to the same column. Other types of secondary notation, however, are not part of the formal notation.[1] For example, when wrapping long lines, every line that is a continuation of a previous line can be indented arbitrarily.[2]

if x == 1:
    print("x is 1")
    print("x is odd")
print("This is always printed")
    # this is illegal
    print("Hello world")
str = " ".join(
    "these words are indented",
    "for better readability")

Markdown also uses indentation as part of the formal syntax of the language. Indentation is required in Markdown when creating certain source code representations of block quotations as well as when creating sections of source code to be rendered as the code itself.[3]

#Heading 1#

     #Indented Markdown source code that will be rendered as source code#  

See also

Notes

  1. ^ "Python: Myths about Indentation". www.secnetix.de. Retrieved 2017-05-22.
  2. ^ "PEP 8 -- Style Guide for Python Code". www.python.org. Retrieved 2017-05-22.
  3. ^ Gruber, John (2015-04-19). "Markdown Syntax". Daring Fireball. Retrieved 2015-04-19.

References

Read other articles:

Penyuntingan Artikel oleh pengguna baru atau anonim untuk saat ini tidak diizinkan.Lihat kebijakan pelindungan dan log pelindungan untuk informasi selengkapnya. Jika Anda tidak dapat menyunting Artikel ini dan Anda ingin melakukannya, Anda dapat memohon permintaan penyuntingan, diskusikan perubahan yang ingin dilakukan di halaman pembicaraan, memohon untuk melepaskan pelindungan, masuk, atau buatlah sebuah akun. Artikel ini bukan mengenai Googol atau Goggles. Google, LLCLogo sejak 2015[up...

This article consists almost entirely of a plot summary. It should be expanded to provide more balanced coverage that includes real-world context. Please edit the article to focus on discussing the work rather than merely reiterating the plot. (August 2019) (Learn how and when to remove this template message) Picture Perfect First editionAuthorJodi PicoultCountryUnited StatesLanguageEnglishGenreFamily saga novelPublisherPutnamPublication dateApril 1995Media typePrintPages369 ppISBN0-399-...

English official and Member of Parliament Sir William St Quintin, 3rd Baronet (c. 1662 – 30 June 1723), of Harpham in Yorkshire, was an English merchant and Whig politician who sat in the House of Commons from 1695 to 1723. He held a succession of public offices. Biography Scampston Hall, North Yorkshire, in 2006 St Quintin was the eldest son of William St Quintin of Muston and his wife Elizabeth Strickland, daughter of Sir William Strickland of Boynton. His father died in 1695 and he ...

Cakra Yudha Semeru F.C. vs. Persebaya SurabayaLiga 2 IndonesiaInformasi pribadiNama lengkap Dwi Andika Cakra YudhaTanggal lahir 17 September 1998 (umur 25)Tempat lahir Lumajang, IndonesiaTinggi 170 cm (5 ft 7 in)Posisi bermain PenyerangInformasi klubKlub saat ini Semeru F.C. LumajangNomor 14Karier junior Perselu Lumajang U-18Karier senior*Tahun Tim Tampil (Gol)2013 - 2017 PSIL Lumajang 38 (1)2017 - Semeru F.C. Lumajang 55 (3) * Penampilan dan gol di klub senior hanya dihit...

جامعة ولاية نيويورك   معلومات التأسيس 1948  الموقع الجغرافي إحداثيات 40°45′29″N 73°59′35″W / 40.758085177393°N 73.993091901481°W / 40.758085177393; -73.993091901481  البلد الولايات المتحدة  إحصاءات عضوية أورسيد  [لغات أخرى]‏ (أكتوبر 2023)[1]  الموقع الموقع الرسمي  تعديل مصدر...

Politics of Mauritania Member State of the Arab League Constitution Human rights Slavery Government President Mohamed Ould Ghazouani Prime Minister Mohamed Ould Bilal Parliament National Assembly President Administrative divisions Regions Departments Communes Elections Recent elections Presidential: 201420192024 Parliamentary: 201320182023 Political parties Electoral districts Foreign relations Ministry of Foreign Affairs Minister: Ismail Ould Cheikh Ahmed Diplomatic missions of / in Mauritan...

Bupati Bangka TengahLambang Kabupaten Bangka TengahPetahanaAlgafry Rahman, S.T.sejak 26 Februari 2021KediamanPendapa Kabupaten Bangka TengahMasa jabatan5 tahunDibentuk24 Mei 2003Pejabat pertamaAbu HanifahSitus webbangkatengahkab.go.id Berikut ini adalah Daftar Bupati Bangka Tengah dari masa ke masa. No Bupati Mulai Jabatan Akhir Jabatan Prd. Ket. Wakil Bupati 1 Drs. H.Abu Hanifah 24 Mei 2003 1 Februari 2005 1 [Ket. 1] 2 Drs. Iskandar Zulkarnaen 1 Februari 2005 2005 2 [Ket. 2&...

Domo dan teman-temannya pada sebuah iklan bus untuk NHK Domo (どーも くんcode: ja is deprecated , Dōmo-kun) adalah maskot resmi lembaga penyiaran publik Jepang, NHK, Maskot tersebut tampil dalam sejumlah sketsa interstitial gerak henti 30 detik yang ditampilkan sebagai identifikasi stasiun dalam acara-acara. Pranala luar Official NHK Domo website (dalam bahasa Jepang) Meaning of Domo Diarsipkan 2021-06-08 di Wayback Machine. (dalam bahasa Inggris) Domonation at Veoh

Das römische Palästina bestand von 63 v. Chr. bis etwa 634 n. Chr. Es durchlief während dieser sieben Jahrhunderte verschiedene Grade der Abhängigkeit vom Römischen Reich. Obwohl die Levante insgesamt römisch und Palästina der Provinz Syria zugeschlagen wurde, bestand dort zunächst eine Herrschaft des Hohepriesters von Jerusalem, dann ein Klientelkönigtum, das zwischen den Großmächten und den Kontrahenten der Spätphase der römischen Bürgerkriege lavierte. Dessen bekanntester Her...

Jünger Logo 1993 Jünger (auch bekannt als Jünger Verlag, Jünger Medien, Jünger Medien Verlag) ist ein Buch- und Filmvertrieb in Offenbach, Deutschland. Zu Jünger gehör(t)en der Unipart Verlag(ab 1999),[1] BuchVerlag für die Frau (bis 2002),[2] Werner Jünger Dia, Film und Tonverlag, Gabal (ab 1995), Burckhardhaus Lataere Verlag, Jünger Medien + Druck und Jünger Home Entertainment. Geschichte 1973 wurde der Verlag von Helmut Jünger (* 28. Juli 1930)[3] gegrü...

Canadian ice hockey player, coach, and executive Ice hockey player Al Arbour Hockey Hall of Fame, 1996 (Builder) Arbour in 1977Born (1932-11-01)November 1, 1932Sudbury, Ontario, CanadaDied August 28, 2015(2015-08-28) (aged 82)Sarasota, Florida, U.S.Height 6 ft 0 in (183 cm)Weight 180 lb (82 kg; 12 st 12 lb)Position DefenceShot LeftPlayed for Detroit Red WingsChicago Black HawksToronto Maple LeafsSt. Louis BluesCoached for St. Louis BluesNew York Islande...

Untuk Stasiun kereta api di Kota Brebes, lihat Stasiun Larangan (Brebes). Singkatan stasiun ini bukan berarti lawrensium (Lr). Stasiun Larangan Stasiun Larangan, 2019LokasiMunjungagung, Kramat, Tegal, Jawa TengahIndonesiaKetinggian+4 mOperatorKAI LogistikLetak dari pangkalkm 142+592 lintas Semarang–Tegal–Cirebon[1]Jumlah peron2 (satu peron sisi dan satu peron pulau yang sama-sama agak tinggi, tetapi tidak ada peron di antara jalur 1 dan 2)Jumlah jalur4 (jalur 1 dan 2: sepur lurus)...

For the fictional school of the same name from the television series The Casagrandes, see César Chávez Academy (fictional school). Private school in Detroit, Michigan, United StatesCésar Chávez Academy of DetroitLocationDetroit, MichiganUnited StatesCoordinates42°19′44″N 83°07′32″W / 42.3289°N 83.1255°W / 42.3289; -83.1255InformationTypePrivateMottoSi Se Puede- Yes We CanHead teacherJuan MartinezCampusUrbanColor(s)Red, white, and blueMascotAztec EagleWe...

Festival de la Canción de Eurovisión 1990 Sala de Conciertos Vatroslav Lisinski, sede del Festival de Eurovisión 1990. Acceso al logo oficial de esta ediciónFecha 5 de mayo de 1990Presentadores Oliver Mlakar & Helga VlahovićTelevisión anfitriona JRTWebsite Página web oficial Lugar Sala de Conciertos Vatroslav Lisinski Zagreb, YugoslaviaGanador(a) Insieme: 1992, Toto CutugnoItalia ItaliaSistema de votos Cada país da 1-8, 10 y 12 puntos a sus 10 canciones favoritasParticipantes...

1983 film Not to be confused with Eréndira (opera). EréndiraTheatrical release posterDirected byRuy GuerraWritten byGabriel García MárquezProduced byAlain QuefféléanRegina ZieglerStarringIrene PapasCláudia OhanaOliver WeheMichael LonsdaleCinematographyDenys ClervalEdited byKenout PeltierMusic byMaurice LecoeurProductioncompaniesLes Films du TriangleFilms A2Ciné Qua NonAtlas Saskia FilmAustraDistributed byMiramaxRelease date 12 September 1983 (1983-09-12) Running time103...

2009 English-language German biographical film Not to be confused with the 2016 video game The Final Station. The Last StationPromotional posterDirected byMichael HoffmanScreenplay byMichael HoffmanBased onThe Last Stationby Jay PariniProduced byBonnie ArnoldChris CurlingJens MeurerStarring Helen Mirren Christopher Plummer Paul Giamatti Anne-Marie Duff Kerry Condon James McAvoy CinematographySebastian EdschmidEdited byPatricia RommelMusic bySergey YevtushenkoDistributed byWarner Bros. Picture...

Road in the Philippines This article is about the road's section in the province of Cagayan. For the entire route also known as such, see N1 highway (Philippines). Cagayan Valley RoadMaharlika HighwayRoute informationMaintained by Department of Public Works and HighwaysLength121.216 km (75.320 mi)Componenthighways N103 in Aparri N101 from Aparri to Lal-lo AH 26 (N1) from Lal-lo to Tuguegarao Major junctionsNorth end Aparri Port in AparriMajor intersections N101 (Aparri Air...

Mordecai Seter Mordecai Seter (Hebrew: מרדכי סתר, February 26, 1916 – August 8, 1994), was a Russian-born Israeli composer. Early life Seter was born Marc Starominsky in Novorossiysk, Russia, in 1916 and emigrated with his family to Mandate Palestine in 1926.[1] Seter learned to play the piano from the age of seven in Russia, and continued with his lessons and studies in Tel Aviv. In 1932, he went to Paris, France, where he studied composition at the Ecole Normale de Musique...

Church in West Midlands, United KingdomSt Mary's ChurchSt Mary's the Mount Church52°34′48″N 1°59′01″W / 52.5801°N 1.9835°W / 52.5801; -1.9835LocationWalsall, West MidlandsCountryUnited KingdomDenominationRoman CatholicWebsiteStMarystheMount.co.ukHistoryStatusParish churchFounder(s)Fr Francis MartynDedicationSaint MaryArchitectureFunctional statusActiveHeritage designationGrade II* listedDesignated31 July 1986Architect(s)Joseph IrelandStyleNeoclassicalGround...

Railway station in Chizu, Tottori Prefecture, Japan This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Nagi Station – news · newspapers · books · scholar · JSTOR (January 2023) (Learn how and when to remove this template message) Nagi Station那岐駅Nagi Station, October 2007General informationLocationOse, Chi...

Kembali kehalaman sebelumnya