]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
doc-rst: linux_tv: Fix some occurences of :sub:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 4 Jul 2016 12:04:31 +0000 (09:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 4 Jul 2016 13:02:02 +0000 (10:02 -0300)
The right way to use it seems to do suscript is to use
this pattern: "\ :sub:"

Make sure all places of the media document will fit, by
using this script:

$n=0;
while (<>) {
$n++;
$t = $_;
@matches = $t =~ m/(..\:sub\:)/g;
foreach my $m (@matches) {
$m =~ m/(.)(.)(\:sub\:)/;
$s1=$1;
$s2=$2;
$s3=$3;
next if (($s1 eq "\\") && ($s2 eq " "));
if ($s2 eq " ") {
$t =~ s/$s1$s2$s3/$s1\\$s2$s3/;
next;
}
$t =~ s/$s1$s2$s3/$s1$s2\\ $s3/;
}
print $t;
}

And running it with:

for i in $(git grep -l sub Documentation/linux_tv/); do ./sub.pl $i >a && mv a $i; done

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/linux_tv/media/v4l/dev-sliced-vbi.rst
Documentation/linux_tv/media/v4l/pixfmt-m420.rst
Documentation/linux_tv/media/v4l/pixfmt-nv12.rst
Documentation/linux_tv/media/v4l/pixfmt-nv12m.rst
Documentation/linux_tv/media/v4l/pixfmt-nv16.rst
Documentation/linux_tv/media/v4l/pixfmt-nv16m.rst
Documentation/linux_tv/media/v4l/vidioc-enumstd.rst

index 4c14f39bbc80f8cdb220857b93e99bfce6f80409..726edf554eb169aa0a408db1e2d14c02b8daed53 100644 (file)
@@ -676,7 +676,7 @@ number).
           sliced VBI data. The sliced VBI data lines present correspond to
           the bits set in the ``linemask`` array, starting from b\ :sub:`0`
           of ``linemask``\ [0] up through b\ :sub:`31` of ``linemask``\ [0],
-          and from b\ :sub:`0` of ``linemask``\ [1] up through b :sub:`3` of
+          and from b\ :sub:`0` of ``linemask``\ [1] up through b\ :sub:`3` of
           ``linemask``\ [1]. ``line``\ [0] corresponds to the first bit
           found set in the ``linemask`` array, ``line``\ [1] corresponds to
           the second bit found set in the ``linemask`` array, etc. If no
index 4434ee1b1be9d0813f623dbb1c180508435a9c7f..2ef35cfc14fa09e0b5bdf6bfd74afafe098666aa 100644 (file)
@@ -22,7 +22,7 @@ Two lines of luma data are followed by one line of chroma data.
 The luma plane has one byte per pixel. The chroma plane contains
 interleaved CbCr pixels subsampled by ½ in the horizontal and vertical
 directions. Each CbCr pair belongs to four pixels. For example,
-Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`,
+Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`,
 Y'\ :sub:`10`, Y'\ :sub:`11`.
 
 All line lengths are identical: if the Y lines include pad bytes so do
index 363e9484aef48700e668e2477861f1f97348397f..c15437c0cb23feb6c3930d73781b349091697dd5 100644 (file)
@@ -23,7 +23,7 @@ first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_NV12``, a
 combined CbCr plane immediately follows the Y plane in memory. The CbCr
 plane is the same width, in bytes, as the Y plane (and of the image),
 but is half as tall in pixels. Each CbCr pair belongs to four pixels.
-For example, Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`,
+For example, Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`,
 Y'\ :sub:`01`, Y'\ :sub:`10`, Y'\ :sub:`11`. ``V4L2_PIX_FMT_NV21`` is
 the same except the Cb and Cr bytes are swapped, the CrCb plane starts
 with a Cr byte.
index a769808aab9bf15d40e7b4d12eb4a5dbb66934b2..ed0fe226a73361b0ff59e65b8b513b7b10f630e8 100644 (file)
@@ -26,8 +26,8 @@ occupies the first plane. The Y plane has one byte per pixel. In the
 second plane there is a chrominance data with alternating chroma
 samples. The CbCr plane is the same width, in bytes, as the Y plane (and
 of the image), but is half as tall in pixels. Each CbCr pair belongs to
-four pixels. For example, Cb :sub:`0`/Cr :sub:`0` belongs to
-Y' :sub:`00`, Y' :sub:`01`, Y' :sub:`10`, Y' :sub:`11`.
+four pixels. For example, Cb\ :sub:`0`/Cr\ :sub:`0` belongs to
+Y'\ :sub:`00`, Y'\ :sub:`01`, Y'\ :sub:`10`, Y'\ :sub:`11`.
 ``V4L2_PIX_FMT_NV12MT_16X16`` is the tiled version of
 ``V4L2_PIX_FMT_NV12M`` with 16x16 macroblock tiles. Here pixels are
 arranged in 16x16 2D tiles and tiles are arranged in linear order in
index a82f46c77d2db460c32e9ad2fdcb95053359617b..74be442eba23a4917716de76a225a8bf9280477a 100644 (file)
@@ -23,7 +23,7 @@ first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_NV16``, a
 combined CbCr plane immediately follows the Y plane in memory. The CbCr
 plane is the same width and height, in bytes, as the Y plane (and of the
 image). Each CbCr pair belongs to two pixels. For example,
-Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`.
+Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`.
 ``V4L2_PIX_FMT_NV61`` is the same except the Cb and Cr bytes are
 swapped, the CrCb plane starts with a Cr byte.
 
index f6a82defe4929c5399b9cb364d7a20f561d028c4..9caa243550a188424a7d5341ca1b286c03471840 100644 (file)
@@ -25,7 +25,7 @@ occupies the first plane. The Y plane has one byte per pixel. In the
 second plane there is chrominance data with alternating chroma samples.
 The CbCr plane is the same width and height, in bytes, as the Y plane.
 Each CbCr pair belongs to two pixels. For example,
-Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`.
+Cb\ :sub:`0`/Cr:sub:`0` belongs to Y'\ :sub:`00`, Y'\ :sub:`01`.
 ``V4L2_PIX_FMT_NV61M`` is the same as ``V4L2_PIX_FMT_NV16M`` except the
 Cb and Cr bytes are swapped, the CrCb plane starts with a Cr byte.
 
index 098251b8be3056487cd6bbd0788b564e5fe82c20..0576d2f9cc79843b60857544324ac14e4329aa5a 100644 (file)
@@ -328,7 +328,7 @@ support digital TV. See also the Linux DVB API at
 
        -  4433618.75 ± 1
 
-       -  :cspan:`3` f :sub:`OR` = 4406250 ± 2000, f :sub:`OB` = 4250000
+       -  :cspan:`3` f\ :sub:`OR` = 4406250 ± 2000, f\ :sub:`OB` = 4250000
           ± 2000
 
     -  .. row 5
@@ -408,7 +408,7 @@ ENODATA
 
 .. [3]
    The values in brackets apply to the combination N/PAL a.k.a.
-   N :sub:`C` used in Argentina (V4L2_STD_PAL_Nc).
+   N\ :sub:`C` used in Argentina (V4L2_STD_PAL_Nc).
 
 .. [4]
    In the Federal Republic of Germany, Austria, Italy, the Netherlands,