metanorma-bipm 2.0.3 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/isodoc/bipm/base_convert.rb +9 -3
 - data/lib/isodoc/bipm/bipm.brochure.xsl +668 -155
 - data/lib/isodoc/bipm/bipm.guide.xsl +668 -155
 - data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +668 -155
 - data/lib/isodoc/bipm/bipm.rapport.xsl +668 -155
 - data/lib/isodoc/bipm/jcgm.standard.xsl +642 -156
 - data/lib/isodoc/bipm/pdf_convert.rb +4 -4
 - data/lib/isodoc/bipm/presentation_xml_convert.rb +6 -6
 - data/lib/isodoc/bipm/xref.rb +4 -4
 - data/lib/metanorma/bipm/bipm.rng +1 -1
 - data/lib/metanorma/bipm/isodoc.rng +73 -3
 - data/lib/metanorma/bipm/version.rb +1 -1
 - data/metanorma-bipm.gemspec +2 -0
 - metadata +31 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 5c1cda232376044f26ca0752d361382aaadbf7b1e8989434a03cbd11e7201221
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 44e2167a44382df941023c94cdc31bceb3b3b18debc0024767226d6fdfca365e
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e68c38aec2249e23c2b1c0c6d2cbaecb9c4caf7e7d9bbdb5f47252c10500a22872d6f640934905739b9a8896ef1115590c5958d491edd5d83425ff24bab7e297
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8e4019292a726ccd28ade7747eeac7bb722200309d48167e771f605b463871dbba98641825582f435fffade446f5009e44ec1f525cd0066bb417c010a366a517
         
     | 
| 
         @@ -33,10 +33,16 @@ module IsoDoc 
     | 
|
| 
       33 
33 
     | 
    
         
             
                    end
         
     | 
| 
       34 
34 
     | 
    
         
             
                  end
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
     | 
    
         
            -
                  def  
     | 
| 
      
 36 
     | 
    
         
            +
                  def omit_docid_prefix(prefix)
         
     | 
| 
      
 37 
     | 
    
         
            +
                    return true if %w(BIPM).include? prefix
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
                    super
         
     | 
| 
      
 40 
     | 
    
         
            +
                  end
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
                  def render_identifier(ident)
         
     | 
| 
       37 
43 
     | 
    
         
             
                    ret = super
         
     | 
| 
       38 
     | 
    
         
            -
                    ret[ 
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
      
 44 
     | 
    
         
            +
                    ret[:sdo] = ret[:sdo]&.sub(/^(BIPM) (PV|CR) (\d.*)$/,
         
     | 
| 
      
 45 
     | 
    
         
            +
                                               "\\1 <strong>\\2</strong>, \\3")
         
     | 
| 
       40 
46 
     | 
    
         
             
                    ret
         
     | 
| 
       41 
47 
     | 
    
         
             
                  end
         
     | 
| 
       42 
48 
     | 
    
         |