Results 1 to 19 of 19

Thread: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Resolved [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    I read a text file to show in a RTB.

    And the text lines up well in Notepad.

    But if you look, it is an unexplainable messy look in the RTB.
    I was going thru the file and moving things around to make it look right.
    But that is just bizarre like for b - Bibliographies alignment issue.
    It is just a short line of text for it to go so wacky.

    How can I read a regular text file and have the text match what Notepad shows?
    I widened my form to make things fit better.

    I split the text in the file into relevant array elements, to then show text about how to code for each individual position.
    It is important to keep that ability.

    And I am getting tired of manually align text, and I don't know how durable that is on some other PC.
    Attached Images Attached Images  

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    I tried a multiline textbox control and it just pushed the b - Bibliographies way off to the left

    I did find it is greatly affected by the Font choice for the rtb.
    I lined it all up for one font, then a different font sent it all out of alignment.

  3. #3
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,422

    Re: Multiple text line up issues, between RTB, and Notepad

    Notepad is generally set to use a fixed width font. If you changed your RTB to do that, the issue might be solved.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    Quote Originally Posted by jdc2000 View Post
    Notepad is generally set to use a fixed width font. If you changed your RTB to do that, the issue might be solved.
    I set the RTB to what was in Notepad Consolas size 11, and it did not help.
    I don't know if that is the stock font for Notepad.

    I just adjusted the file text to make it align.
    And I left the RTB as Consolas.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    Both set to Consolas 11
    rtb in program aligns, Notepad no aligns.

    I do wonder why this happens.
    Attached Images Attached Images  

  6. #6
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,785

    Re: Multiple text line up issues, between RTB, and Notepad

    Are you padding the line beginnings? If so the fonts will have to be identical in notepad and the RTB.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    Quote Originally Posted by dbasnett View Post
    Are you padding the line beginnings? If so the fonts will have to be identical in notepad and the RTB.
    Well, it is a text file with spaces spacing the chars.

    Like this

    Code:
    **16 - Type of visual material *
    
         One-character alphabetic code that indicates the type of 
         visual material being described.
    
    	a - Art original
    	b - Kit
              Mixture of components from two or more categories, 
              that is, sound recording, maps, filmstrips, etc., no
              one of which is the predominant constituent of the 
              item.
    
    	c - Art reproduction
    	d - Diorama
    	f - Filmstrip
    	g - Game
    	i - Picture
    	k - Graphic
    	l - Technical drawing
    	m - Motion picture
    	n - Chart
    	o - Flash card
    	p - Microscope slide
    	q - Model
    	r - Realia
    	s - Slide
    	t - Transparency
    	v - Videorecording
    	w - Toy
    	z - Other
    	| - No attempt to code
    
    See the description of position 33 (Type of visual material) under /008--VISUAL MATERIALS 33 - Type of visual material (006/16)        <https://www.loc.gov/marc/bibliographic/concise/bd008v.html>

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    What I do is, I split the help text file into its main sections divided by dashed lines.

    Then I split the section into subsections, depending on where a user has entered one of the little rtb to display help about that position.
    at form load do this

    Code:
    	'load file into string
    	'open text file
    	'read whole file and split in array
    	'in Bin Debug folder
    	Dim Content As String = IO.File.ReadAllText(My.Application.Info.DirectoryPath + "\006positions.ini")
    
    	'mylist(1) to (15) has the info
    	mylist = Split(Content, "------------------------------------------------------------------------")
    	Content = ""
    	If UBound(mylist) = 0 Then
    		MsgBox("Help file does Not exist" & Application.ExecutablePath + "\006positions.ini")
    		'Exit Sub
    	End If
    Then when a user enters a rtb, split the sections into the subsections on a double **

    main section is like book, maps, computer resources, on and on it goes.

    Each subsection within those main sections hold coding help info about the char positions a user would enter when creating a MARC tag =006.

    In effect this code here

    Code:
    Private Sub _rtxt007_0_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_0.MouseEnter
    	Index = 0 : _rtxt007_0.SelectionStart = 0 : _rtxt007_0.SelectionLength = 1 : _rtxt007_0.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_1_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_1.MouseEnter
    	Index = 1 : _rtxt007_1.SelectionStart = 0 : _rtxt007_1.SelectionLength = 1 : _rtxt007_1.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_2_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_2.MouseEnter
    	Index = 2 : _rtxt007_2.SelectionStart = 0 : _rtxt007_2.SelectionLength = 1 : _rtxt007_2.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_3_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_3.MouseEnter
    	Index = 3 : _rtxt007_3.SelectionStart = 0 : _rtxt007_3.SelectionLength = 1 : _rtxt007_3.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_4_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_4.MouseEnter
    	Index = 4 : _rtxt007_4.SelectionStart = 0 : _rtxt007_4.SelectionLength = 1 : _rtxt007_4.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_5_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_5.MouseEnter
    	Index = 5 : _rtxt007_5.SelectionStart = 0 : _rtxt007_5.SelectionLength = 1 : _rtxt007_5.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_6_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_6.MouseEnter
    	Index = 6 : _rtxt007_6.SelectionStart = 0 : _rtxt007_6.SelectionLength = 1 : _rtxt007_6.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_7_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_7.MouseEnter
    	Index = 7 : _rtxt007_7.SelectionStart = 0 : _rtxt007_7.SelectionLength = 1 : _rtxt007_7.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_8_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_8.MouseEnter
    	Index = 8 : _rtxt007_8.SelectionStart = 0 : _rtxt007_8.SelectionLength = 1 : _rtxt007_8.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_9_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_9.MouseEnter
    	Index = 9 : _rtxt007_9.SelectionStart = 0 : _rtxt007_9.SelectionLength = 1 : _rtxt007_9.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_10_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_10.MouseEnter
    	Index = 10 : _rtxt007_10.SelectionStart = 0 : _rtxt007_10.SelectionLength = 1 : _rtxt007_10.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_11_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_11.MouseEnter
    	Index = 11 : _rtxt007_11.SelectionStart = 0 : _rtxt007_11.SelectionLength = 1 : _rtxt007_11.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_12_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_12.MouseEnter
    	Index = 12 : _rtxt007_12.SelectionStart = 0 : _rtxt007_12.SelectionLength = 1 : _rtxt007_12.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_13_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_13.MouseEnter
    	Index = 13 : _rtxt007_13.SelectionStart = 0 : _rtxt007_13.SelectionLength = 1 : _rtxt007_13.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_14_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_14.MouseEnter
    	Index = 14 : _rtxt007_14.SelectionStart = 0 : _rtxt007_14.SelectionLength = 1 : _rtxt007_14.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_15_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_15.MouseEnter
    	Index = 15 : _rtxt007_15.SelectionStart = 0 : _rtxt007_15.SelectionLength = 1 : _rtxt007_15.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_16_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_16.MouseEnter
    	Index = 16 : _rtxt007_16.SelectionStart = 0 : _rtxt007_16.SelectionLength = 1 : _rtxt007_16.Select() : rtxt007_MouseMove()
    End Sub
    Private Sub _rtxt007_17_MouseEnter(sender As Object, e As EventArgs) Handles _rtxt007_17.MouseEnter
    	Index = 17 : _rtxt007_17.SelectionStart = 0 : _rtxt007_17.SelectionLength = 1 : _rtxt007_17.Select() : rtxt007_MouseMove()
    End Sub
    
    Private Sub rtxt007_MouseMove() '(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
    	'If MDIMarcWInsert006 = "MAP" Then Splat = Split(mylist(1), "*") : rtxtDescription.Text = Splat(2)
    	'If MDIMarcWInsert006 = "MAP" Then Splat = Split(mylist(1), "*") : rtxtDescription.Text = Splat(1)
    
    
    	If MDIMarcWInsert006 = "BOOKS" Then
    
    		'for index = 0 show just 00 position info
    		'split it again
    		Splat = Split(mylist(1), "**")
    
    		If Index = 0 Then rtxtDescription.Text = Splat(1)
    
    		If Index = 1 Then rtxtDescription.Text = Splat(2)
    		If Index = 2 Then rtxtDescription.Text = Splat(2)
    		If Index = 3 Then rtxtDescription.Text = Splat(2)
    		If Index = 4 Then rtxtDescription.Text = Splat(2)
    
    		If Index = 5 Then rtxtDescription.Text = Splat(3)
    		If Index = 6 Then rtxtDescription.Text = Splat(4)
    
    		If Index = 7 Then rtxtDescription.Text = Splat(5)
    		If Index = 8 Then rtxtDescription.Text = Splat(5)
    		If Index = 9 Then rtxtDescription.Text = Splat(5)
    		If Index = 10 Then rtxtDescription.Text = Splat(5)
    
    		If Index = 11 Then rtxtDescription.Text = Splat(6)
    		If Index = 12 Then rtxtDescription.Text = Splat(7)
    		If Index = 13 Then rtxtDescription.Text = Splat(8)
    		If Index = 14 Then rtxtDescription.Text = Splat(9)
    		If Index = 15 Then rtxtDescription.Text = Splat(10)
    		If Index = 16 Then rtxtDescription.Text = Splat(11)
    		If Index = 17 Then rtxtDescription.Text = Splat(12)
    
    	End If
    
    	If MDIMarcWInsert006 = "COMPUTER FILES/ELECTRONIC RESOURCES" Then
    		'for index = 0 show just 00 position info
    		'split it again
    		Splat = Split(mylist(2), "**")
    
    		If Index = 0 Then rtxtDescription.Text = Splat(1) '00
    
    		If Index = 1 Then rtxtDescription.Text = Splat(2) '01
    		If Index = 2 Then rtxtDescription.Text = Splat(2) '02
    		If Index = 3 Then rtxtDescription.Text = Splat(2) '03
    		If Index = 4 Then rtxtDescription.Text = Splat(2) '04		
    
    		If Index = 5 Then rtxtDescription.Text = Splat(3) '05
    		If Index = 6 Then rtxtDescription.Text = Splat(4) '06
    
    		If Index = 7 Then rtxtDescription.Text = Splat(5) '07
    		If Index = 8 Then rtxtDescription.Text = Splat(5) '08
    
    		If Index = 9 Then rtxtDescription.Text = Splat(6) '09
    		If Index = 10 Then rtxtDescription.Text = Splat(7) '10
    		If Index = 11 Then rtxtDescription.Text = Splat(8) '11
    
    		If Index = 12 Then rtxtDescription.Text = Splat(9) '12
    		If Index = 13 Then rtxtDescription.Text = Splat(9) '13
    		If Index = 14 Then rtxtDescription.Text = Splat(9) '14
    		If Index = 15 Then rtxtDescription.Text = Splat(9) '15
    		If Index = 16 Then rtxtDescription.Text = Splat(9) '16
    		If Index = 17 Then rtxtDescription.Text = Splat(9) '17
    
    	End If
    
    	If MDIMarcWInsert006 = "MAPS" Then
    		Splat = Split(mylist(3), "**")
    
    		If Index = 0 Then rtxtDescription.Text = Splat(1) '00
    
    		If Index = 1 Then rtxtDescription.Text = Splat(2) '01
    		If Index = 2 Then rtxtDescription.Text = Splat(2) '02
    		If Index = 3 Then rtxtDescription.Text = Splat(2) '03
    		If Index = 4 Then rtxtDescription.Text = Splat(2) '04		
    
    		If Index = 5 Then rtxtDescription.Text = Splat(3) '05
    		If Index = 6 Then rtxtDescription.Text = Splat(3) '06
    
    		If Index = 7 Then rtxtDescription.Text = Splat(4) '07
    		If Index = 8 Then rtxtDescription.Text = Splat(5) '08
    
    		If Index = 9 Then rtxtDescription.Text = Splat(6) '09
    		If Index = 10 Then rtxtDescription.Text = Splat(6) '10
    
    		If Index = 11 Then rtxtDescription.Text = Splat(7) '11
    
    		If Index = 12 Then rtxtDescription.Text = Splat(8) '12
    		If Index = 13 Then rtxtDescription.Text = Splat(9) '13
    		If Index = 14 Then rtxtDescription.Text = Splat(10) '14
    		If Index = 15 Then rtxtDescription.Text = Splat(11) '15
    		If Index = 16 Then rtxtDescription.Text = Splat(12) '16
    		If Index = 17 Then rtxtDescription.Text = Splat(12) '17
    	End If
    
    	If MDIMarcWInsert006 = "MIXED MATERIALS" Then
    		Splat = Split(mylist(4), "**")
    
    		If Index = 0 Then rtxtDescription.Text = Splat(1) '00
    
    		If Index = 1 Then rtxtDescription.Text = Splat(2) '01
    		If Index = 2 Then rtxtDescription.Text = Splat(2) '02
    		If Index = 3 Then rtxtDescription.Text = Splat(2) '03
    		If Index = 4 Then rtxtDescription.Text = Splat(2) '04		
    		If Index = 5 Then rtxtDescription.Text = Splat(2) '05
    
    		If Index = 6 Then rtxtDescription.Text = Splat(3) '06
    
    		If Index = 7 Then rtxtDescription.Text = Splat(4) '07
    		If Index = 8 Then rtxtDescription.Text = Splat(4) '08
    		If Index = 9 Then rtxtDescription.Text = Splat(4) '09
    		If Index = 10 Then rtxtDescription.Text = Splat(4) '10
    		If Index = 11 Then rtxtDescription.Text = Splat(4) '11
    		If Index = 12 Then rtxtDescription.Text = Splat(4) '12
    		If Index = 13 Then rtxtDescription.Text = Splat(4) '13
    		If Index = 14 Then rtxtDescription.Text = Splat(4) '14
    		If Index = 15 Then rtxtDescription.Text = Splat(4) '15
    		If Index = 16 Then rtxtDescription.Text = Splat(4) '16
    		If Index = 17 Then rtxtDescription.Text = Splat(4) '17
    
    	End If
    	If MDIMarcWInsert006 = "MUSIC" Then
    		Splat = Split(mylist(5), "**")
    
    		If Index = 0 Then rtxtDescription.Text = Splat(1) '00
    
    		If Index = 1 Then rtxtDescription.Text = Splat(2) '01
    		If Index = 2 Then rtxtDescription.Text = Splat(2) '02
    
    		If Index = 3 Then rtxtDescription.Text = Splat(3) '03
    		If Index = 4 Then rtxtDescription.Text = Splat(4) '04		
    		If Index = 5 Then rtxtDescription.Text = Splat(5) '05
    		If Index = 6 Then rtxtDescription.Text = Splat(6) '06
    
    		If Index = 7 Then rtxtDescription.Text = Splat(7) '07
    		If Index = 8 Then rtxtDescription.Text = Splat(7) '08
    		If Index = 9 Then rtxtDescription.Text = Splat(7) '09
    		If Index = 10 Then rtxtDescription.Text = Splat(7) '10
    		If Index = 11 Then rtxtDescription.Text = Splat(7) '11
    		If Index = 12 Then rtxtDescription.Text = Splat(7) '12
    
    		If Index = 13 Then rtxtDescription.Text = Splat(8) '13
    		If Index = 14 Then rtxtDescription.Text = Splat(8) '14
    
    		If Index = 15 Then rtxtDescription.Text = Splat(9) '15
    		If Index = 16 Then rtxtDescription.Text = Splat(10) '16
    		If Index = 17 Then rtxtDescription.Text = Splat(11) '17
    	End If
    
    	If MDIMarcWInsert006 = "CONTINUING RESOURCES" Then
    		Splat = Split(mylist(6), "**")
    
    		If Index = 0 Then rtxtDescription.Text = Splat(1)
    		If Index = 1 Then rtxtDescription.Text = Splat(2)
    		If Index = 2 Then rtxtDescription.Text = Splat(3)
    		If Index = 3 Then rtxtDescription.Text = Splat(4)
    		If Index = 4 Then rtxtDescription.Text = Splat(5)
    		If Index = 5 Then rtxtDescription.Text = Splat(6)
    		If Index = 6 Then rtxtDescription.Text = Splat(7)
    		If Index = 7 Then rtxtDescription.Text = Splat(8)
    
    		If Index = 8 Then rtxtDescription.Text = Splat(9)
    		If Index = 9 Then rtxtDescription.Text = Splat(9)
    		If Index = 10 Then rtxtDescription.Text = Splat(9)
    
    		If Index = 11 Then rtxtDescription.Text = Splat(10)
    		If Index = 12 Then rtxtDescription.Text = Splat(11)
    
    		If Index = 13 Then rtxtDescription.Text = Splat(12) '13
    		If Index = 14 Then rtxtDescription.Text = Splat(12) '14
    		If Index = 15 Then rtxtDescription.Text = Splat(12) '15
    
    		If Index = 16 Then rtxtDescription.Text = Splat(13) '16
    		If Index = 17 Then rtxtDescription.Text = Splat(14) '17
    
    	End If
    	If MDIMarcWInsert006 = "VISUAL MATERIALS" Then
    		Splat = Split(mylist(7), "**")
    
    		If Index = 0 Then rtxtDescription.Text = Splat(1)
    
    		If Index = 1 Then rtxtDescription.Text = Splat(2)
    		If Index = 2 Then rtxtDescription.Text = Splat(2)
    		If Index = 3 Then rtxtDescription.Text = Splat(2)
    
    		If Index = 4 Then rtxtDescription.Text = Splat(3)
    		If Index = 5 Then rtxtDescription.Text = Splat(4)
    
    		If Index = 6 Then rtxtDescription.Text = Splat(5)
    		If Index = 7 Then rtxtDescription.Text = Splat(5)
    		If Index = 8 Then rtxtDescription.Text = Splat(5)
    		If Index = 9 Then rtxtDescription.Text = Splat(5)
    		If Index = 10 Then rtxtDescription.Text = Splat(5)
    
    		If Index = 11 Then rtxtDescription.Text = Splat(6)
    		If Index = 12 Then rtxtDescription.Text = Splat(7)
    
    		If Index = 13 Then rtxtDescription.Text = Splat(8) '13
    		If Index = 14 Then rtxtDescription.Text = Splat(8) '14
    		If Index = 15 Then rtxtDescription.Text = Splat(8) '15
    
    		If Index = 16 Then rtxtDescription.Text = Splat(9) '16
    		If Index = 17 Then rtxtDescription.Text = Splat(10) '17
    	End If
    
    End Sub

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    And a part of the help file with couple main sections looks like this

    Code:
    ------------------------------------------------------------------------
    
    *006--BOOKS*
    
    For descriptions of character positions 01-17, see the
    descriptions of corresponding character positions 18-34 in the 008--BOOKS section of Control Field 008.
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html> 
    
    /Character Positions/
    
    **00 - Form of material *
    
    	a - Language material
    	t - Manuscript language material
    
    **01-04 - Illustrations * 
          
        Up to four (4) one-character alphabetic codes (recorded in
        alphabetical order) that indicate the presence of types of
        illustrations in the item. If fewer than four alphabetic     
        codes are assigned, the codes are left justified and unused
        positions contain blanks (#).
    
    	# - No illustrations
    	a - Illustrations
    	b - Maps
    	c - Portraits
    	d - Charts
    	e - Plans
    	f - Plates
    	g - Music
    	h - Facsimiles
    	i - Coats of arms
    	j - Genealogical tables
    	k - Forms
    	l - Samples
    	m - Phonodisc, phonowire, etc.
    	o - Photographs
    	p - Illuminations
    	| - No attempt to code
    
    See the description of positions 18-21 (Illustrations) under
    /008--BOOKS 18-21 - Illustrations (006/01-04)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    **05 - Target audience * 
         
         One-character alphabetic code that describes the
         intellectual level of the target audience for which the
         material is intended.
    
    	# - Unknown or not specified
    	a - Preschool
    	b - Primary
    	c - Pre-adolescent
    	d - Adolescent
    	e - Adult
    	f - Specialized
    	g - General
    	j - Juvenile
    	| - No attempt to code
    
    See the description of position 22 (Target audience) under  
    /008--BOOKS  22 - Target audience (006/05)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    **06 - Form of item * 
        
         One-character alphabetic code that specifies the form of
         material for the item.
    
    	# - None of the following
    	a - Microfilm
    	b - Microfiche
    	c - Microopaque
    	d - Large print
    	f - Braille
    	o - Online
    	q - Direct electronic
    	r - Regular print reproduction
              Eye-readable print, such as a photocopy.
    
    	s - Electronic
    	| - No attempt to code
    
    See the description of position 23 (Form of item) under /008--BOOKS
    23 - Form of item (006/06)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    **07-10 - Nature of contents *	
          
        Up to four one-character codes that indicate whether a
        significant part of the item is or contains certain types
        of material. If fewer than four codes are assigned, the 
        codes are left justified and unused positions contain 
        blanks (#).
    
    	# - No specified nature of contents
    	a - Abstracts/summaries, Abstracts or summaries of other 
                publications. Not used when a publication includes an
                abstract or summary of its own content.
    
          b - Bibliographies
    	c - Catalogs
    	    Also includes lists of collectible objects, such as
              stamps and coins, or trade catalogs, etc. For
              catalogs of books, sound recordings, or motion
              pictures, code b (Bibliographies), code k 
              (Discographies), or code q (Filmographies), are
              given with code c.
    
    	d - Dictionaries
    	e - Encyclopedias
    	f - Handbooks
    	g - Legal articles
    	i - Indexes
              Index to bibliographical material other than itself.
    			
    	j - Patent document
    	k - Discographies
    	l - Legislation
    	    Full or partial texts of enactments of legislative  
              bodies, published either in statute or in code form,
              or texts of rules and regulations issued by executive
              or administrative agencies.
    
    	m - Theses
    	    Thesis, dissertation, or work identified as having been
              created to satisfy the requirements for an academic
              certification or degree.
    
    	n - Surveys of literature in a subject area composed
              entirely of authored surveys that summarize what
              has been published about a subject.
    
    	o - Reviews
    	    Devoted entirely to critical reviews of published or
              performed works (e.g., books, films, sound recordings,
              theater).
    
    	p - Programmed texts
    	q - Filmographies
    	r - Directories
    	s - Statistics
    	t - Technical reports
    	u - Standards/specifications
    	v - Legal cases and case notes
    	w - Law reports and digests
    	y - Yearbooks
    	z - Treaties
    	    Treaty or accord negotiated between two or more parties
              to settle a disagreement, establish a relationship,
              grant rights, etc.
    
    	2 - Offprints
    	    Publication that originally was published as an article           
              in a monograph or a serial and that is also issued
              separately and independently. Includes preprints and
              postprints.
    
    	5 - Calendars
    	6 - Comics/graphic novels
    	| - No attempt to code
    
    See the description of positions 24-27 (Nature of contents) under /008--BOOKS 24-27 - Nature of contents (006/07-10)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    
    **11 - Government publication *	
         
         One-character code that indicates whether or
         not the item is published or produced by or for an   
         international, national, state, provincial, or local
         government agency, or by any subdivision of such a body.
    
    	# - Not a government publication
    	a - Autonomous or semi-autonomous component
    	c - Multilocal
    	f - Federal/national
    	i - International intergovernmental
    	l - Local
    	m - Multistate
    	o - Government publication-level undetermined
    	s - State, provincial, territorial, dependent, etc.
    	u - Unknown if item is government publication
    	z - Other
    	| - No attempt to code
    
    See the description of position 28 (Government publication)  
    under /008--BOOKS  28 - Government publication (006/11)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    
    **12 - Conference publication *	
         
         One character code that indicates whether the item consists  
         of the proceedings, reports, or summaries of a conference.
    
    	0 - Not a conference publication
    	1 - Conference publication
    	| - No attempt to code
    
    See the description of position 29 (Conference publication)
    under /008--BOOKS 29 - Conference publication (006/12) 
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    
    
    **13 - Festschrift *
    	
         One-character code that indicates
         whether the item is a festschrift.
    
    	0 - Not a festschrift
    	1 - Festschrift
    	| - No attempt to code
    
    See the description of position 30 (Festschrift) under 
    /008--BOOKS 30 - Festschrift (006/13)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    
    **14 - Index *	
         
        One-character numeric code that indicates whether the item
        includes an index to its own contents.
    
    	0 - No index
    	1 - Index present
    	| - No attempt to code
    
    See the description of position 31 (Index) under /008--BOOKS
    31 - Index (006/14)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
      
    **15 - Undefined *
    
           Contains a blank (#) or a fill (|) character
    	
    **16 - Literary form *	
          
          One-character code used to indicate the literary form of 
          an item. Numeric codes 0 and 1 provide a generic   
          identification of whether or not the item is a work of   
          fiction. Alphabetic codes may be used to identify
          specific literary forms.
    
            0 - Not fiction (not further specified)
            1 - Fiction (not further specified)
            d - Dramas
            e - Essays
            f - Novels
            h - Humor, satires, etc.
                Humorous work, satire, or of similar literary form.  
    
            i - Letters
                Single letter or collection of correspondence.
    
            j - Short stories
                Short story or collection of short stories.
    
            m - Mixed forms
         	      Represents a variety of literary forms (e.g., poetry 
                and short stories).
    
            p - Poetry
            s - Speeches
            u - Unknown
            | - No attempt to code
     
    See the description of position 33 (Literary form) under /008--BOOKS 33 - Literary form (006/16)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    
    **17 - Biography *	
          
          One-character alphabetic code that indicates whether or not
          an item contains biographical material, and if so, what the
          biographical characteristics are.
    
            # - No biographical material
            a - Autobiography
            b - Individual biography
            c - Collective biography
            d - Contains biographical information
            | - No attempt to code
    
    See the description of position 34 (Biography) under /008--BOOKS
    34 - Biography (006/17)
    <https://www.loc.gov/marc/bibliographic/concise/bd008b.html>
    
    
    ------------------------------------------------------------------------
    
    *006--COMPUTER FILES/ELECTRONIC RESOURCES *
    
    For descriptions of character positions 01-17, see the descriptions of
    corresponding character positions 18-34 in the 008--COMPUTER FILES
    <https://www.loc.gov/marc/bibliographic/concise/bd008c.html> section of
    Control Field 008.
    
    /Character Positions/
    
    **00 - Form of material *
    
    	m - Computer file/Electronic resource
    
    **01-04 - Undefined *
    
    	Each contains a blank (#) or a fill (|) character
    	
    **05 - Target audience *
          
         One-character alphabetic code indicates the target audience  
         for which the material is intended.
    
    	# - Unknown or not specified
    	a - Preschool
    	b - Primary
    	c - Pre-adolescent
    	d - Adolescent
    	e - Adult
    	f - Specialized
    	g - General
    	j - Juvenile
    	| - No attempt to code
    
    See the description of position 22 (Target audience) under /008--COMPUTER FILES 22 - Target audience (006/05)
    <https://www.loc.gov/marc/bibliographic/concise/bd008c.html>
    
    **06 - Form of item *
         
         One-character alphabetic code that specifies the form of
         material for the item.
    
    	# - Unknown or not specified
    	o - Online
    	q - Direct electronic
    	| - No attempt to code
    
    See the description of position 23 (Form of item) under /008--COMPUTER FILES 23 - Form of item (006/06)
    <https://www.loc.gov/marc/bibliographic/concise/bd008c.html>
    
    **07-08 - Undefined *
    
    	Each contains a blank (#) or a fill (|) character
    		
    **09 - Type of computer file *
    	
         One-character alphabetic code that indicates the type of   
         computer file described in the bibliographic record.
    
    	a - Numeric data
    	b - Computer program
    	c - Representational
              Pictorial or graphic information that can be
              manipulated in conjunction with other types of
              files to produce graphic patterns that can be
              used to interpret and give meaning to the information. 
    
    	d - Document
    	e - Bibliographic data
    	f - Font
    	g - Game
    	h - Sound
    	i - Interactive multimedia
    	j - Online system or service
    	m - Combination
    	u - Unknown
    	z - Other
    	| - No attempt to code
    
    See the description of position 26 (Type of computer file) under /008--COMPUTER FILES 26 - Type of computer file (006/09)
    <https://www.loc.gov/marc/bibliographic/concise/bd008c.html>
    
    
    **10 - Undefined *
    
    	Contains a blank (#) or a fill (|) character
    	
    **11 - Government publication *
    
         One-character alphabetic code that indicates whether the
         computer file is published or produced by or for an
         international, national, provincial, state, or local
         government agency (including intergovermental bodies of 
         all types), any subdivision of such a body and, if so, 
         the jurisdictional level of the agency.	
    	
    	# - Not a government publication
    	a - Autonomous or semi-autonomous component
    	c - Multilocal
    	f - Federal/national
    	i - International intergovernmental
    	l - Local
    	m - Multistate
    	o - Government publication-level undetermined
    	s - State, provincial, territorial, dependent, etc.
    	u - Unknown if item is government publication
    	z - Other
    	| - No attempt to code
    
    See the description of position 28 (Government publication) under /008--COMPUTER FILES 28 - Government publication (006/11)
    <https://www.loc.gov/marc/bibliographic/concise/bd008c.html>/
    
    **12-17 - Undefined *
    	Each contains a blank (#) or a fill (|) character
            
    ------------------------------------------------------------------------
    
    *006--MAPS *
    
    For descriptions of character positions 01-17, see the descriptions of corresponding character positions 18-34 in the 008--MAPS  section of Control Field 008.
    <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    
    /Character Positions/
    
    **00 - Form of material *
    	e - Cartographic material
    	f - Manuscript cartographic material
    
    **01-04 - Relief *
    
         Up to four one-character alphabetic codes that indicate the 
         relief type specified on the item. Codes are recorded in
         order of their importance to the described item. If fewer
         than four codes are assigned, the codes are left justified
         and each unused position contains a blank (#).
    
    	# - No relief shown
    	a - Contours
    	b - Shading
    	c - Gradient and bathymetric tints
    	d - Hachures
    	e - Bathymetry/soundings
    	f - Form lines
    	g - Spot heights
    	i - Pictorially
    	j - Land forms
    	k - Bathymetry/isolines
    	m - Rock drawings
    	z - Other
    	|||| - No attempt to code
    
    See the description of positions 18-21 (Relief) under /008--MAPS
    18-21 - Relief (006/01-04)
    <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    
    **05-06 - Projection *
    
        Two-character alphabetic code that indicates the projection
        used in producing the item.
    
    	## - Projection not specified
    	aa - Aitoff
    	ab - Gnomic
    	ac - Lambert's azimuthal equal area
    	ad - Orthographic
    	ae - Azimuthal equidistant
    	af - Stereographic
    	ag - General vertical near-sided
    	am - Modified stereographic for Alaska
    	an - Chamberlin trimetric
    	ap - Polar stereographic
    	au - Azimuthal, specific type unknown
    	az - Azimuthal, other
    	ba - Gall
    	bb - Goode's homolographic
    	bc - Lambert's cylindrical equal area
    	bd - Mercator
    	be - Miller
    	bf - Mollweide
    	bg - Sinusoidal
    	bh - Transverse Mercator
    	bi - Gauss-Kruger
    	bj - Equirectangular
    	bk - Krovak
    	bl - Cassini-Soldner
    	bo - Oblique Mercator
    	br - Robinson
    	bs - Space oblique Mercator
    	bu - Cylindrical, specific type unknown
    	bz - Cylindrical, other
    	ca - Albers equal area
    	cb - Bonne
    	cc - Lambert's conformal conic
    	ce - Equidistant conic
    	cp - Polyconic
    	cu - Conic, specific type unknown
    	cz - Conic, other
    	da - Armadillo
    	db - Butterfly
    	dc - Eckert
    	dd - Goode's homolosine
    	de - Miller's bipolar oblique conformal conic
    	df - Van Der Grinten
    	dg - Dimaxion
    	dh - Cordiform
    	dl - Lambert conformal
    	zz - Other
    	|| - No attempt to code	
    
    See the description of positions 22-23 (Projection) under /008--MAPS 22-23 - Projection (006/05-06)
    <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    
    **07 - Undefined *
    
    	Contains a blank (#) or a fill (|) character
    
    **08 - Type of cartographic material *
    
         One-character alphabetic code that indicates the type of  
         cartographic item described.
    
    	a - Single map
    	b - Map series
              Number of related but physically separate and 
              bibliographically distinct
              cartographic units intended by the producer(s) or
              issuing body(s) to form a single group.
    
    	c - Map serial
              Issued in successive parts bearing numerical or 
              chronological designations and intended to be
              continued indefinitely.
    
    	d - Globe
    	e - Atlas
    	f - Separate supplement to another work
    	g - Bound as part of another work
    	u - Unknown
    	z - Other
    	| - No attempt to code
    
    See the description of position 25 (Type of cartographic material) under /008--MAPS 25 - Type of cartographic material (006/08)        <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    	
    **09-10 - Undefined *
    
    	Each contains a blank (#) or a fill (|) character
    
    **11 - Government publication *
    
         One-character alphabetic code that indicates whether the
         item is published or produced by or for an international,
         national, provincial, state, or local government agency, 
         or by any subdivision of such a body, and, if so, the
         jurisdictional level of the agency.
    
    	# - Not a government publication
    	a - Autonomous or semi-autonomous component
    	c - Multilocal
    	f - Federal/national
    	i - International intergovernmental
    	l - Local
    	m - Multistate
    	o - Government publication-level undetermined
    	s - State, provincial, territorial, dependent, etc.
    	u - Unknown if item is government publication
    	z - Other
    	| - No attempt to code
    
    See the description of position 28 (Government publication) under /008--MAPS  28 - Government publication (006/11)
    <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    	
    **12 - Form of item *
    
         One-character alphabetic code that indicates the form of 
         material for the item.
    
    	# - None of the following
    	a - Microfilm
    	b - Microfiche
    	c - Microopaque
    	d - Large print	
    	f - Braille
    	o - Online
    	q - Direct electronic
    	r - Regular print reproduction.
     	    Eye-readable print, such as a photocopy.
    	
    	s - Electronic
    	| - No attempt to code
    
    See the description of position 23 (Form of item) under /008--
    MAPS 29 - Form of item (006/12)        <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    	
    **13 - Undefined *
    
    	Contains a blank (#) or a fill (|) character
    	
    **14 - Index *
    
         One-character numeric code that indicates whether the item or 
         accompanying material includes a location index or gazetteer.
    
    	0 - No index
    	1 - Index present
    	| - No attempt to code
    
    See the description of position 31 (Index) under /008--MAPS 
    31 - Index (006/14)        <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    
    **15 - Undefined *
    
    	Contains a blank (#) or a fill (|) character
    
    **16-17 - Special format characteristics *
    
         Up to two one-character alphabetic codes that indicate the 
         special format characteristics of the map. Codes are 
         recorded in order of their importance to the described item.
         If only one code is assigned, it is left justified
         and the unused position contains a blank (#).
    
    	# - No specified special format characteristics
    	e - Manuscript
    	j - Picture card, post card
    	k - Calendar
    	l - Puzzle
    	n - Game
    	o - Wall map
    	p - Playing cards
    	r - Loose-leaf
    	z - Other
    	|| - No attempt to code
    
    See the description of positions 33-34 (Special format characteristics) under /008--MAPS 
    33-34 - Special format characteristics (006/16-17)
    <https://www.loc.gov/marc/bibliographic/concise/bd008p.html>
    	
    ------------------------------------------------------------------------
    
    *006--MIXED MATERIALS *
    
    For descriptions of character positions 01-17, see the descriptions of corresponding character positions 18-34 in the 008--MIXED MATERIALS section of Control Field 008.
    <https://www.loc.gov/marc/bibliographic/concise/bd008x.html> 
    
    /Character Positions/
    
    **00 - Form of material *

  10. #10
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,573

    Re: Multiple text line up issues, between RTB, and Notepad


  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    playing with selectiontabs, I found doing this aligns the rtb in the program with the NotePad++ display of the text.

    Windows Notepad has 8 chars spacing for TAB and I read it is not adjustable.
    rtb control follows tab at 8 chars, unless you force it to change.

    It seems every integer advances the tab position, so far the only 2 concerning me are 30, 60. The 75 100 125 are just sitting there for testing right now.

    Mildly interesting to me at the moment.
    I think I can align the rtb text to Notepad++ text doing this
    I suppose could do that with Windows Notepad, but 8 spaces are a lot to loose, and my text file spacing for char descriptions, I don't want that wide.

    Code:
    		rtxtDescription.SelectAll()
    		rtxtDescription.SelectionTabs = New Integer() {30, 60, 75, 100, 125}
    		rtxtDescription.AcceptsTab = True
    		rtxtDescription.Select(0, 0)

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: Multiple text line up issues, between RTB, and Notepad

    Oh, yeah. Perfect. Redid the whole text help file and alignment agrees between rtb and Notepad++ now.

    Windows Notepad still sees a TAB as 8 spaces, so out of alignment. But I don't care about that, no longer relevant.
    Nice that TAB spacing can easily be adjusted in the rtb control, without resorting to strange fancy code, or not being able to change it at all.


    Learned a lot more than I cared to about these things last few days.
    NotePad++ has the option of viewing TAB control and spaces when editing text.
    Very useful program.

    changed my tab line to this in case I tab out more than twice
    Code:
    rtxtDescription.SelectionTabs = New Integer() {30, 60, 90, 120, 150}

  13. #13
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,573

    Re: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    Why bother reinventing the wheel? The .chm Compiled HTML file is the default windows help file format…

    https://www.helpsmith.com/htmlhelp.php

  14. #14
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,573

    Re: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    A *.chm file is a standalone help file that’ll run on any windows installation…

  15. #15

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    Quote Originally Posted by .paul. View Post
    A *.chm file is a standalone help file that’ll run on any windows installation…
    Why bother? Cause I already did.
    I had to create my own 'helper' text file from the LOC website by saving the text.
    And modify it to make it work.
    It works well in the form.
    It does not have to work anywhere else.

    My help file zeroes in on relevant text when a user enters a rtb, so that can happen 17 times per classification and this 006 tag has 7 of those.
    So 7 times 17 different displays of relevant to the position help text.
    Last edited by sdowney1; May 29th, 2024 at 11:45 AM.

  16. #16
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,573

    Re: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    Windows help files can be used that way. They can display whatever content you choose, and you can add a table of contents and hyperlinks linking topics. Just a suggestion, but I’m sure it’d work out better than trying to format text files…

  17. #17

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    Quote Originally Posted by .paul. View Post
    Windows help files can be used that way. They can display whatever content you choose, and you can add a table of contents and hyperlinks linking topics. Just a suggestion, but I’m sure it’d work out better than trying to format text files…
    I figured out all the formatting issues.
    Not convinced some windows format help file would have been easy to do.
    For me what I did was easy.
    I already had this setup for tag 007 and 008. So was just a matter of configuring some things a little differently to work well.
    All 3 forms are very similar.
    For some reason the formatting was not as much of an issue for what I had done with 007 and 008 20 years ago.

    Could be I was doing fewer indents and had done it all with Notepad. The rtb in vb6 must work about the same.

  18. #18
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,573

    Re: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    I think you just need an ms word file. You format it as you want, add local hyperlinks, images, and possibly a sidebar TOC. Then it’s fairly easy to convert that to a context sensitive help file…
    Last edited by .paul.; May 29th, 2024 at 12:36 PM.

  19. #19

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2024
    Posts
    862

    Re: [RESOLVED] Multiple text line up issues, between RTB, and Notepad

    Quote Originally Posted by .paul. View Post
    I think you just need an ms word file. You format it as you want, add local hyperlinks, images, and possibly a sidebar TOC. Then it’s fairly easy to convert that to a context sensitive help file…
    If I am doing something new, I can look into doing that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width