caption

Image caption width to same as image

ε祈祈猫儿з 提交于 2019-12-03 18:48:37
问题 How can I make image caption width same as image? Now I have the following code: <div class="image"> <img src="foo.jpg" alt="" /> <div>This is the caption.</div> </div> I've tried a lot of things (floating, absolute positioning etc), but if the caption is long, it always makes the div wide instead of going on many lines. The problem is that I don't know the width of image (or the length of caption). Is the only way to solve this use tables? 回答1: So the problem is that you don't know how wide

YouTube API without user OAuth process

大兔子大兔子 提交于 2019-12-03 15:05:26
I am trying to fetch captions from YouTube video using YouTube Data API (v3) https://developers.google.com/youtube/v3/guides/implementation/captions So, first I tried to retrieve a captions list using this url: https://www.googleapis.com/youtube/v3/captions?part=snippet&videoId=KK9bwTlAvgo&key= {My API KEY} I could retrieve the caption id that I'd like to download (jEDP-pmNCIqoB8QGlXWQf4Rh3faalD_l) from the above link. Then, I followed this instruction to download the caption: https://developers.google.com/youtube/v3/docs/captions/download However, even though I input the caption id and my api

How to extract closed caption transcript from YouTube video?

烂漫一生 提交于 2019-12-03 01:28:42
问题 Is it possible to extract the closed caption transcript from YouTube videos? We have over 200 webcasts on YouTube and each is at least one hour long. YouTube has closed caption for all videos but it seems users have no way to get it. I tried the URL in this blog but it does not work with our videos. http://googlesystem.blogspot.com/2010/10/download-youtube-captions.html 回答1: Following document says only the owner of the channel can do this via standard youtube interface: https://developers

How to extract closed caption transcript from YouTube video?

混江龙づ霸主 提交于 2019-12-02 16:43:27
Is it possible to extract the closed caption transcript from YouTube videos? We have over 200 webcasts on YouTube and each is at least one hour long. YouTube has closed caption for all videos but it seems users have no way to get it. I tried the URL in this blog but it does not work with our videos. http://googlesystem.blogspot.com/2010/10/download-youtube-captions.html Following document says only the owner of the channel can do this via standard youtube interface: https://developers.google.com/youtube/2.0/developers_guide_protocol_captions?hl=en Cheap fix: You can click on the "interactive

Add a Caption to a Table or Figure in OpenXml

左心房为你撑大大i 提交于 2019-12-02 16:18:23
问题 I'm trying to create this structure in OpenXml: <P> <Table /> <Caption>Table 1 - Some Text 1 </Caption> <Picture /> <Caption>Figure 1 - Some Text 2 </Caption> </P> In terms of code I have: var currentLine = new Paragraph(); currentLine.AppendChild(new Run(elem)); -> Where the elem is Table ... currentLine.AppendChild(new Run(elem2)); -> Where the elem2 is Drawing So I only miss the way to add captions, the same captions that I can do in MS Word References-> Insert Caption. Some information

Referring to a Subform from a Query

萝らか妹 提交于 2019-12-02 11:49:22
In MS Access 2010, I have a Query which quotes the following in the Criteria; [Forms]![frm_Add_Item_Subform].[ActiveControl].[Caption] This lets me use the "Caption" text of a Button within the query. The following code is on the Button to capture the click. Private Sub cmdClickMe_Click() Debug.Print Me.cmdClickMe.Caption Debug.Print Screen.ActiveControl.Caption End Sub I obtained information on how to do this at the following StackOverflow URL. use caption of pressed button from main form in query of other form The functionality works ok when used in a Form. But doesn't when its used within a

Add a Caption to a Table or Figure in OpenXml

允我心安 提交于 2019-12-02 08:09:10
I'm trying to create this structure in OpenXml: <P> <Table /> <Caption>Table 1 - Some Text 1 </Caption> <Picture /> <Caption>Figure 1 - Some Text 2 </Caption> </P> In terms of code I have: var currentLine = new Paragraph(); currentLine.AppendChild(new Run(elem)); -> Where the elem is Table ... currentLine.AppendChild(new Run(elem2)); -> Where the elem2 is Drawing So I only miss the way to add captions, the same captions that I can do in MS Word References-> Insert Caption. Some information how to accomplish this would be very appreciated. Rui Use this: http://www.microsoft.com/en-us/download

Proper heading for a table

筅森魡賤 提交于 2019-12-01 20:52:57
A matter of semantics. If I have a HTML page that is basically one big table, what element do I use for a header? Ordinarily, you'd use a h1 for the heading of the page, and a caption for the table's heading. But what if the table is the only thing on the page? Including both looks a bit silly. So do I use a h1 and forget about the caption , or vice versa? Are there formal (W3C or WHATWG) recommendations about this? If so, I can't find them. PS For the sake of this question, let's assume that the table is filled with tabular data, OK. A table caption can contain free-form content. You could

Figure caption scientific names + symbols in textGrob gtable

自古美人都是妖i 提交于 2019-12-01 08:51:57
First of all I would like to thank Sir Baptiste for helping me improve my R script by adding a caption at the bottom left the of the combined plots using gtable/textGrob as shown below: library(grid) library(gridExtra) library(ggplot2) p1 <- p2 <- ggplot() g1 <- ggplotGrob(p1) g2 <- ggplotGrob(p2) g <- rbind(g1, g2) caption <- textGrob("Figure 1. This is a caption", hjust=0, x=0) g <- gtable::gtable_add_rows(g, unit(2,"mm") + grobHeight(caption), -1) g <- gtable::gtable_add_grob(g, caption, nrow(g), l = 4, r = ncol(g)) grid.newpage() grid.draw(g) However, I want to add two more things: (1)

Figure caption scientific names + symbols in textGrob gtable

假装没事ソ 提交于 2019-12-01 06:09:45
问题 First of all I would like to thank Sir Baptiste for helping me improve my R script by adding a caption at the bottom left the of the combined plots using gtable/textGrob as shown below: library(grid) library(gridExtra) library(ggplot2) p1 <- p2 <- ggplot() g1 <- ggplotGrob(p1) g2 <- ggplotGrob(p2) g <- rbind(g1, g2) caption <- textGrob("Figure 1. This is a caption", hjust=0, x=0) g <- gtable::gtable_add_rows(g, unit(2,"mm") + grobHeight(caption), -1) g <- gtable::gtable_add_grob(g, caption,